Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Pages deployment permissions and deploy to GitHub Pages
Browse files Browse the repository at this point in the history
miesgre committed Jan 17, 2024
1 parent 26e40f4 commit 1b2b72f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -5,6 +5,11 @@ on:
branches:
- test-deploy

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: build-and-deploy
@@ -40,4 +45,16 @@ jobs:
uses: actions/upload-pages-artifact@v1
with:
path: mirror-root/localhost:8443/cas


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

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

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

0 comments on commit 1b2b72f

Please sign in to comment.