mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-02-18 02:55:48 +00:00
Created a 'Deploy to GitHub Pages' GitHub Action
This commit is contained in:
parent
d715232132
commit
7e8bcf16d9
20
.github/workflows/deploy-gh-pages.yml
vendored
Normal file
20
.github/workflows/deploy-gh-pages.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16.x
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm test
|
||||
- run: npm run cy:start-and-run
|
||||
- run: npm run deploy
|
||||
Loading…
x
Reference in New Issue
Block a user