Skip to content

Commit

Permalink
Update release flow to download correct artefacts
Browse files Browse the repository at this point in the history
The release pipeline for whatever reason downloaded artefacts from the previous run, not the current. This doesn't fly so I've made it look for artefacts from the current run!
  • Loading branch information
Axemasta committed Feb 25, 2025
1 parent 61b7fb6 commit 42f89aa
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions .github/workflows/mocale-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,10 @@ jobs:

- name: Download artifacts
id: download-artifact
uses: dawidd6/action-download-artifact@v6
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
repo: Axemasta/Mocale
workflow: mocale-ci.yml
name: drop
path: Artifacts/
search_artifacts: true

- name: Process NuGet Version
shell: pwsh
Expand Down Expand Up @@ -146,24 +143,24 @@ jobs:
Write-Host "ArtifactName = $ArtifactName"
Write-Host "Is PreRelease = $IsPreRelease"
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
custom_tag: ${{ env.VERSION_NAME }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- uses: ncipollo/release-action@main
name: Create Release
with:
artifacts: ${{ env.ARTIFACTS }}
artifactErrorsFailBuild: true
draft: true
generateReleaseNotes: true
name: ${{ env.RELEASE_TITLE }}
tag: ${{ env.VERSION_NAME }}
prerelease: ${{ env.IS_PRERELEASE }}
body: 'TODO'

- name: Publish NuGet
run: dotnet nuget push ${{ env.ARTIFACTS }} --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
# - name: Bump version and push tag
# id: tag_version
# uses: mathieudutour/[email protected]
# with:
# custom_tag: ${{ env.VERSION_NAME }}
# github_token: ${{ secrets.GITHUB_TOKEN }}

# - uses: ncipollo/release-action@main
# name: Create Release
# with:
# artifacts: ${{ env.ARTIFACTS }}
# artifactErrorsFailBuild: true
# draft: true
# generateReleaseNotes: true
# name: ${{ env.RELEASE_TITLE }}
# tag: ${{ env.VERSION_NAME }}
# prerelease: ${{ env.IS_PRERELEASE }}
# body: 'TODO'

# - name: Publish NuGet
# run: dotnet nuget push ${{ env.ARTIFACTS }} --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate

0 comments on commit 42f89aa

Please sign in to comment.