From 0ec69964e96792fa29f9a2cf485c1d54375118e8 Mon Sep 17 00:00:00 2001 From: Magic Sky <146746648+YSHgroup@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:38:56 -0400 Subject: [PATCH] Update deploy.yml with fixing the url and permission --- .github/workflows/deploy.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 44ea9d0..ae7d605 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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 }}"