Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release.yml #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ jobs:
echo "file_name=foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" >> $GITHUB_OUTPUT
fi


- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ needs.prepare.outputs.release_name }}
path: ${{ steps.artifacts.outputs.file_name }}
if-no-files-found: error

- name: Build man page
id: man
if: matrix.target == 'x86_64-unknown-linux-gnu'
Expand Down Expand Up @@ -223,6 +231,21 @@ jobs:
${{ steps.artifacts.outputs.file_name }}
${{ steps.man.outputs.foundry_man }}

publish-release:
needs: [prepare, release]
runs-on: ubuntu-latest
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
path: ${{ steps.artifacts.outputs.file_name }}
merge-multiple: true
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ steps.artifacts.outputs.file_name }}
prerelease: true

cleanup:
name: Release cleanup
runs-on: ubuntu-latest
Expand Down
Loading