Skip to content

Commit

Permalink
Update jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Binnette committed Jul 8, 2024
1 parent 3ed0d4c commit aff723a
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- main

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
uses: actions/setup-node@v4
with:
node-version: '20'

Expand All @@ -27,12 +27,24 @@ jobs:
- name: Build
run: npm run build

- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
email: [email protected]
build_dir: dist
branch: gh-pages
jekyll: no
path: dist

deploy:
needs: build
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit aff723a

Please sign in to comment.