diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..3c4c606 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: Build and Deploy + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + concurrency: ci-${{github.ref}} + permissions: + id-token: write + pages: write + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure Node + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: Build + run: | + npm ci + npm run build + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4.5.0 + with: + folder: dist + branch: gh-pages \ No newline at end of file