Skip to content

Commit

Permalink
Update deploy_site.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions authored Jul 14, 2023
1 parent 30721d5 commit 7a69329
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/deploy_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,26 @@ jobs:
dotnet-version: 7.0.x

# Publish the site
- name: Publish
- name: Build and Publish Site Artifacts
run: dotnet publish website/FishyFlipSite/FishyFlipSite.csproj -c:Release -o:publish -p:GHPages=true

# Deploy the site
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: publish/wwwroot

deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

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

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

0 comments on commit 7a69329

Please sign in to comment.