Skip to content

Commit 163d8d3

Browse files
authored
Basic GitHub Action CI (#3)
* build: let's give that GH pages workflow a try * chore: wording * feat: added GH pages build * chore: switch to main branch before merge
1 parent d543f6b commit 163d8d3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/gh_pages.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Set a branch name to trigger deployment
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-20.04
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: NPM install
16+
run: npm ci
17+
- name: NPM Build
18+
run: npm run build
19+
- name: Deploy
20+
uses: peaceiris/actions-gh-pages@v3
21+
if: ${{ github.ref == 'refs/heads/main' }}
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: ./public

0 commit comments

Comments
 (0)