diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml new file mode 100644 index 00000000..9b848003 --- /dev/null +++ b/.github/workflows/pages.yaml @@ -0,0 +1,34 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy website to Pages + +on: + # Runs on pushes targeting the default branch + push: + pull_request: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.122.0 + steps: + - name: Install and Build + run: npm install && npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + # If you're changing the branch from main, + # also change the `main` in `refs/heads/main` + # below accordingly. + if: github.ref == 'refs/heads/master' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./website \ No newline at end of file