mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
feat: add summary step for GitHub Pages deployment URL in workflow
This commit is contained in:
11
.github/workflows/deploy-pages.yml
vendored
11
.github/workflows/deploy-pages.yml
vendored
@@ -42,6 +42,8 @@ jobs:
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v4
|
||||
with:
|
||||
enablement: true
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
@@ -66,3 +68,12 @@ jobs:
|
||||
echo "GitHub Pages deployed to: ${{ steps.deployment.outputs.page_url }}" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "page_url=${{ steps.deployment.outputs.page_url }}" >> "$GITHUB_OUTPUT"
|
||||
echo "::notice::GitHub Pages URL: ${{ steps.deployment.outputs.page_url }}"
|
||||
|
||||
summarize:
|
||||
needs: deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Summarize GitHub Pages URL
|
||||
run: |
|
||||
echo "GitHub Pages URL: ${{ needs.deploy.outputs.page_url }}" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "::notice::GitHub Pages URL: ${{ needs.deploy.outputs.page_url }}"
|
||||
|
||||
Reference in New Issue
Block a user