-
-
Notifications
You must be signed in to change notification settings - Fork 53
36 lines (33 loc) · 957 Bytes
/
deploy-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy app
env:
USERNAME: ${{ github.actor }}
ADDRESS_SUFFIX: users.noreply.github.com
on:
push:
branches:
- dev
jobs:
deploy-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create CNAME file
uses: "finnp/create-file-action@master"
env:
FILE_NAME: "public/CNAME"
FILE_DATA: "audiomotion.app"
- name: Generate Directory Listings
uses: jayanta525/[email protected]
with:
FOLDER: public/music
FOLDER: public/backgrounds
- name: Run shell script
run: |
git config user.name "$USERNAME"
git config user.email "$USERNAME@$ADDRESS_SUFFIX"
git mv docs public
git add *
git commit -m "Deploy app"
git subtree split --prefix public -b gh-pages
git push -f origin gh-pages:gh-pages