Skip to content

Commit c29e8a0

Browse files
authored
Fix actions order in release workflow (#154)
1 parent 0a781f1 commit c29e8a0

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/live-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
3636

3737
- name: Upload artifact
38-
uses: actions/upload-artifact@v2
38+
uses: actions/upload-artifact@v4
3939
if: ${{ !cancelled() }}
4040
with:
4141
name: test-artifacts

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
${{ env.version_suffix_args}}
4141

4242
- name: Upload artifact
43-
uses: actions/upload-artifact@v2
43+
uses: actions/upload-artifact@v4
4444
if: ${{ !cancelled() }}
4545
with:
4646
name: build-artifacts

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5858

5959
- name: Upload artifact
60-
uses: actions/upload-artifact@v2
60+
uses: actions/upload-artifact@v4
6161
if: ${{ !cancelled() }}
6262
with:
6363
name: build-artifacts
@@ -67,16 +67,13 @@ jobs:
6767
name: Publish Package
6868
needs: build
6969
runs-on: ubuntu-latest
70-
permissions:
71-
packages: write
72-
contents: write
7370
steps:
74-
- uses: actions/download-artifact@v2
75-
76-
# Append the nuget package to the github release that triggered this workflow
7771
- name: Checkout code
7872
uses: actions/checkout@v2
7973

74+
- name: Download build artifacts
75+
uses: actions/download-artifact@v4
76+
8077
- name: Upload release asset
8178
if: github.event_name == 'release'
8279
run: gh release upload ${{ github.event.release.tag_name }}
@@ -95,7 +92,8 @@ jobs:
9592
- name: Publish package to local feed
9693
run: dotnet nuget push
9794
${{github.workspace}}/build-artifacts/packages/*.nupkg
98-
--source github
95+
--source "github"
96+
--api-key ${{ secrets.GITHUB_TOKEN }}
9997
--skip-duplicate
10098

10199
- name: Publish package to nuget.org

0 commit comments

Comments
 (0)