Skip to content

Commit

Permalink
get deployed name
Browse files Browse the repository at this point in the history
  • Loading branch information
WindyDante committed Oct 11, 2024
1 parent b370482 commit 9b49ce3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ jobs:
# 显示部署成功的 GitHub Pages 地址
- name: Show GitHub Pages URL
run: |
echo "Deployed to https://${{ github.repository.split('/')[0] }}.github.io/${{ github.repository.split('/')[1] }}/"
REPO_URL="https://${GITHUB_REPOSITORY_OWNER}.github.io/${GITHUB_REPOSITORY_NAME}/"
echo "Deployed to $REPO_URL"
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} # 用户名
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }} # 仓库名

0 comments on commit 9b49ce3

Please sign in to comment.