Skip to content

Commit

Permalink
Fix actions order in release workflow (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Jul 31, 2024
1 parent 0a781f1 commit c29e8a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/live-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test-artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
${{ env.version_suffix_args}}

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: build-artifacts
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: build-artifacts
Expand All @@ -67,16 +67,13 @@ jobs:
name: Publish Package
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- uses: actions/download-artifact@v2

# Append the nuget package to the github release that triggered this workflow
- name: Checkout code
uses: actions/checkout@v2

- name: Download build artifacts
uses: actions/download-artifact@v4

- name: Upload release asset
if: github.event_name == 'release'
run: gh release upload ${{ github.event.release.tag_name }}
Expand All @@ -95,7 +92,8 @@ jobs:
- name: Publish package to local feed
run: dotnet nuget push
${{github.workspace}}/build-artifacts/packages/*.nupkg
--source github
--source "github"
--api-key ${{ secrets.GITHUB_TOKEN }}
--skip-duplicate

- name: Publish package to nuget.org
Expand Down

0 comments on commit c29e8a0

Please sign in to comment.