-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (66 loc) · 2.16 KB
/
release.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
name: Deploy to Production
on:
push:
branches:
- main
# schedule: # Run workflow automatically
# - cron: '0 1 * * *' # Runs every day at 1:00 AM (min hour day month)
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install and Build components 🔧
# .nojekyll: do not ignore _ dirs
run: |
npm ci
npm run build
touch build/.nojekyll
# CI: false # true -> fails on warning
- name: Download versions from 2023
uses: robinraju/release-downloader@v1
with:
tag: '2023'
fileName: 'dist.tar.gz'
- name: Extract versions from 2023
run: |
mkdir -p build/2023
tar -xvf dist.tar.gz --directory build/2023
- name: Download versions from 2024
uses: robinraju/release-downloader@v1
with:
tag: '2024'
fileName: 'dist.tar.gz'
- name: Extract versions from 2024
run: |
mkdir -p build/2024
tar -xvf dist.tar.gz --directory build/2024
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload build repository
path: 'build'
- name: Deploy to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4