update deploy pages.
This commit is contained in:
parent
dd412dd37f
commit
fe94c999c6
1 changed files with 16 additions and 5 deletions
21
.github/workflows/webpage_deploy.yml
vendored
21
.github/workflows/webpage_deploy.yml
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
name: Build and Deploy Webpage to GitHub Pages
|
name: Build and Deploy Webpage to GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
@ -9,6 +10,21 @@ on:
|
||||||
- .github/workflows/webpage_build.yml
|
- .github/workflows/webpage_build.yml
|
||||||
- .github/workflows/webpage_deploy.yml
|
- .github/workflows/webpage_deploy.yml
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-webpage:
|
build-webpage:
|
||||||
name: Build Webpage
|
name: Build Webpage
|
||||||
|
|
@ -19,11 +35,6 @@ jobs:
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
needs: build-webpage
|
needs: build-webpage
|
||||||
|
|
||||||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
|
|
||||||
permissions:
|
|
||||||
pages: write # to deploy to Pages
|
|
||||||
id-token: write # to verify the deployment originates from an appropriate source
|
|
||||||
|
|
||||||
# Deploy to the github-pages environment
|
# Deploy to the github-pages environment
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue