diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..35e47fc --- /dev/null +++ b/.github/workflows/build.yml @@ -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