From ab87c057f46ffd204be94c660448c40055f5e7c4 Mon Sep 17 00:00:00 2001 From: "Alexey Kalmakov (rndD)" Date: Tue, 24 Sep 2024 22:52:44 +0200 Subject: [PATCH] postjam deploy --- .github/workflows/deploy.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..7a6e55a --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,33 @@ + +name: GitHub Pages + +on: + push: + branches: + - post-jam + + pull_request: + +jobs: + deploy: + runs-on: node:22 + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + defaults: + run: + working-directory: website + steps: + - uses: actions/checkout@v3 + + + - run: npm install + - run: npm build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist \ No newline at end of file