ci: setup github workflows
This commit is contained in:
parent
d8c2f5a0bf
commit
95f1a42b74
21
.github/workflows/jobs.yaml
vendored
Normal file
21
.github/workflows/jobs.yaml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: deploy
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- run: echo "COMMIT_SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 21
|
||||||
|
cache: "npm"
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run build
|
||||||
|
- uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./out
|
||||||
|
cname: ig.rizaldy.club
|
Loading…
Reference in New Issue
Block a user