-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 1.51 KB
/
release.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: 🚀 release
on:
push:
branches: ["release"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
release:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: actions/configure-pages@v5
- run: npm ci
- run: npm run build -s
- run: npm test
- name: delete dev symlinks
run: |
rm x/assets
rm x/node_modules
rm x/s
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SPARROW_DEPLOYER_PRIVATE_KEY }}
- name: upload to signaller server
run: |
rsync --delete -hamz \
--exclude ".git" \
--exclude "node_modules" \
-e "ssh -o StrictHostKeyChecking=no" \
./ [email protected]:/home/deployer/app/
- name: serverside deployment script
run: |
ssh \
-o StrictHostKeyChecking=no \
"~/app/deploy"
- name: reconstitute node_modules for production
run: npm ci --omit=dev
- name: moving files into x
run: |
mv node_modules x/node_modules
mv s x/s
mv assets x/assets
- uses: actions/upload-pages-artifact@v3
with:
path: 'x'
- uses: actions/deploy-pages@v4