-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1.03 KB
/
gh-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
# Publish web app to github pages
name: Publish
on:
push:
branches: [master, main]
jobs:
publish:
runs-on: ubuntu-latest
#container: cypress/base:latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- uses: ButlerLogic/[email protected]
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
tag_prefix: "v"
id: create_tag
# - run: echo ${{ steps.create_tag.outputs.tagname }}
# - run: echo ${{ steps.create_tag.outputs.version }}
- name: Check if a new tag is created
run: "[[ '${{ steps.create_tag.outputs.tagname }}' ]]"
- run: npm ci
# - run: npm test
- run: npm run build
- name: Deploy app to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
single-commit: true
clean: true