-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 997 Bytes
/
deploy-pages.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
name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build
env:
JIRA_CLOUD_CLIENT_ID: ${{ secrets.JIRA_CLOUD_CLIENT_ID }}
JIRA_CLOUD_CLIENT_SECRET: ${{ secrets.JIRA_CLOUD_CLIENT_SECRET }}
JIRA_CLOUD_CALLBACK_URL: ${{ vars.JIRA_CLOUD_CALLBACK_URL }}
PRODUCTION: ${{ vars.PRODUCTION }}
run: npm run build
- name: Copy index.html to 404.html
run: cp ./dist/metriqs/browser/index.html ./dist/metriqs/browser/404.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/metriqs/browser