Skip to content

Commit

Permalink
push to pages?
Browse files Browse the repository at this point in the history
  • Loading branch information
milomg committed May 21, 2024
1 parent 6e86cf3 commit 4983c83
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ on:
pull_request:
branches: [ "master" ]

permissions:
contents: read
pages: write

jobs:
build:
runs-on: ubuntu-24.04
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
Expand All @@ -27,3 +34,13 @@ jobs:
run: pnpm install
- name: Build
run: pnpm run build

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 4983c83

Please sign in to comment.