Skip to content

Commit

Permalink
yml修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin0011 committed Jun 14, 2024
1 parent 29fecf0 commit b9c7592
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,4 @@ jobs:
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get GitHub Pages URL
id: get-url
run: |
repo=${{ github.repository }}
owner=${{ github.repository_owner }}
api_url="https://api.github.com/repos/${owner}/${repo}/pages"
pages_url=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" $api_url | jq -r .html_url)
echo "pages_url=$pages_url" >> $GITHUB_ENV
- name: Output GitHub Pages URL
run: |
echo "GitHub Pages URL: ${{ env.pages_url }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b9c7592

Please sign in to comment.