From 1d55bc556dbe756594042e6da01e06a33b7e1bf0 Mon Sep 17 00:00:00 2001 From: rei1024 Date: Mon, 21 Oct 2024 16:22:52 +0900 Subject: [PATCH] feat: deploy --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/deploy.yml 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