Skip to content

Commit d7c85f9

Browse files
committed
fix config error
1 parent f642e77 commit d7c85f9

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/deploy.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ on:
66
- "main"
77

88
jobs:
9-
outputs:
10-
releases: ${{ steps.releases.outputs.releases }}
11-
steps:
12-
- id: releases
13-
run: |
14-
echo "releases=$(curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/${{github.repository}}/releases?per_page=100" | jq -c '[.[].tag_name]')" >> $GITHUB_OUTPUT
9+
setup:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
releases: ${{ steps.releases.outputs.releases }}
13+
steps:
14+
- id: releases
15+
run: |
16+
echo "releases=$(curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/${{github.repository}}/releases?per_page=100" | jq -c '[.[].tag_name]')" >> $GITHUB_OUTPUT
1517
releases:
1618
needs: setup
1719
runs-on: ubuntu-latest
@@ -32,6 +34,7 @@ jobs:
3234
path: |
3335
deploy/releases
3436
deploy:
37+
needs: releases
3538
runs-on: ubuntu-latest
3639
steps:
3740
- uses: actions/checkout@v3
@@ -44,7 +47,7 @@ jobs:
4447
mkdir ./deploy
4548
cp -r dist ./deploy
4649
cp -r assets ./deploy
47-
cp -r index.html ./deploy
50+
cp index.html ./deploy
4851
- name: Restore releases
4952
uses: actions/download-artifact@v3
5053
with:

0 commit comments

Comments
 (0)