-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (79 loc) · 2.57 KB
/
deploy-pages-action.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Deploy Project to GitHub Pages
on:
workflow_dispatch:
permissions:
pages: write
id-token: write
concurrency:
group: "build-and-deploy"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup `node`
uses: actions/setup-node@v3
with:
node-version: '20.10'
- name: Restore `lively.next` repo
id: cache-lively
uses: actions/cache/restore@v3
env:
cache-name: lively-repo
ref: 9c51c586cfca90d3df3c4439a9677adfa40476de
with:
path: .
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.ref }}
- name: Checkout `lively.next`
if: ${{ steps.cache-lively.outputs.cache-hit != 'true' }}
uses: actions/checkout@v4
with:
repository: LivelyKernel/lively.next
ref: 9c51c586cfca90d3df3c4439a9677adfa40476de
- name: Prepare to install `lively.next`
run: chmod a+x ./install.sh
- name: Install `lively.next`
if: ${{ steps.cache-lively.outputs.cache-hit != 'true' }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 5
retry_on: error
command: ./install.sh --freezer-only
- name: Save `lively` repo in cache
if: ${{ steps.cache-lively.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v3
env:
cache-name: lively-repo
ref: 9c51c586cfca90d3df3c4439a9677adfa40476de
with:
path: .
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.ref }}
- name: Checkout Project Repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
path: local_projects/engageLively--galyleo-dashboard
- name: Checkout Project Dependencies
uses: actions/checkout@v4
with:
repository: LivelyKernel/partsbin
path: local_projects/LivelyKernel--partsbin/
- name: Build Project
run: npm run build-minified --prefix local_projects/engageLively--galyleo-dashboard
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: local_projects/engageLively--galyleo-dashboard/build
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
- name: Delete uploaded Artifact
uses: geekyeggo/delete-artifact@v2
with:
name: github-pages