diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..dba8392 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,36 @@ +name: Publish to GitHub Pages +on: push +permissions: + contents: read + pages: write + id-token: write +concurrency: + group: "pages" + cancel-in-progress: true +jobs: + publish: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Create deployment build + run: npm run deploy + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload deployment build + uses: actions/upload-pages-artifact@v3 + with: + path: 'deploy' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4