diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..92c56b5 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,39 @@ +# https://docs.github.com/ja/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages +name: Deploy + +on: + push: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "22" + - run: npm ci + - run: npm run build + # - uses: actions/upload-artifact@v3 + # with: + # name: math_vis + # path: dist + - uses: actions/upload-pages-artifact@v1 + with: + path: dist + + 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@v2 + id: deployment