Skip to content

Commit

Permalink
Update deploy workflow to include GitHub Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
EGalahad committed Dec 19, 2023
1 parent 8e2b4f6 commit 22d8056
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,35 @@ on:
branches:
- main # Replace with your desired branch

workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
environment:
name: Github Pages
url: https://<username>.github.io/<repo-name>

runs-on: ubuntu-latest

steps:
- name: Checkout repository
- name: Checkout
uses: actions/checkout@v3

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

# Upload entire repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 22d8056

Please sign in to comment.