Skip to content

Commit

Permalink
Updating deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Gottfredsen committed Jan 2, 2025
1 parent 3ded996 commit c51e404
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
workflow_dispatch:
jobs:
build-and-deploy:
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -19,3 +22,11 @@ jobs:
env:
VITE_BRANCH: ${{ github.ref_name }}
VITE_PREVIEW: 1
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
# upload entire directory
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
workflow_dispatch:
jobs:
build-and-deploy:
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -18,3 +21,11 @@ jobs:
- run: npm run build
env:
VITE_BRANCH: ${{ github.ref_name }}
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
# upload entire directory
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit c51e404

Please sign in to comment.