Skip to content

Commit 0ec6996

Browse files
authored
Update deploy.yml with fixing the url and permission
1 parent bf5a443 commit 0ec6996

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,23 @@ on:
88
- main # Set a branch to trigger deployment
99
workflow_dispatch:
1010

11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
21+
1122
jobs:
1223
build_and_deploy:
1324

1425
environment:
1526
name: github-pages
16-
url: ${{ steps.deployment.outputs.page_url }}
27+
url: https://yshgroup.github.io/vue3-fullcalendar-bootstrap/
1728

1829
runs-on: ubuntu-latest
1930

@@ -50,3 +61,7 @@ jobs:
5061
- name: Deploy to GitHub Pages
5162
id: deployment
5263
uses: actions/deploy-pages@v4
64+
# You can add another step here to use the page_url
65+
66+
- name: Output deployment URL
67+
run: echo "The deployed page URL is ${{ steps.deployment.outputs.page_url }}"

0 commit comments

Comments
 (0)