Skip to content

Commit

Permalink
I guess this is the real deploy action?
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMcLean committed Nov 9, 2024
1 parent 1750c00 commit 65158b3
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@ on:
branches: [ deploy ]
workflow_dispatch:

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

jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4

Expand All @@ -33,8 +42,14 @@ jobs:
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll

- name: Commit to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
folder: release/wwwroot
branch: gh-pages
path: 'release/wwwroot'

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

0 comments on commit 65158b3

Please sign in to comment.