Skip to content

Commit

Permalink
added deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmo3769 committed Nov 18, 2023
1 parent efe131d commit 2a30fd9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build_test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: build
run: |
npm i
CI=false npm run build
- name: deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.TOKEN }}
publish_dir: ./build

0 comments on commit 2a30fd9

Please sign in to comment.