Skip to content

Commit

Permalink
Update deploy.yml with fixing the url and permission
Browse files Browse the repository at this point in the history
  • Loading branch information
YSHgroup authored Apr 24, 2024
1 parent bf5a443 commit 0ec6996
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,23 @@ on:
- main # Set a branch to trigger deployment
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build_and_deploy:

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: https://yshgroup.github.io/vue3-fullcalendar-bootstrap/

runs-on: ubuntu-latest

Expand Down Expand Up @@ -50,3 +61,7 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# You can add another step here to use the page_url

- name: Output deployment URL
run: echo "The deployed page URL is ${{ steps.deployment.outputs.page_url }}"

0 comments on commit 0ec6996

Please sign in to comment.