Skip to content

Commit

Permalink
add: github actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
ytkousei committed May 7, 2024
1 parent be48fef commit 3cc78f4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: npm-install
run: npm i
- name: app-build
run: npm run build
- uses: actions/upload-pages-artifact@v1
with:
path: out
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/deploy-pages@v3
id: deployment

0 comments on commit 3cc78f4

Please sign in to comment.