Skip to content

Commit

Permalink
Add create-release step to publish binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaklin committed Feb 27, 2024
1 parent d4236e9 commit b295738
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/make_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,34 @@ jobs:
with:
name: mSWEEP-${{ github.ref_name }}-arm64-apple-darwin22
path: /io/mSWEEP-${{ github.ref_name }}-arm64-apple-darwin22.tar.gz

create-release:
runs-on: ubuntu-latest

needs: [ build_linux-x86_64, build_macOS-x86_64, build_macOS-arm64 ]

steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v2
with:
path: build

- name: Organise files
shell: bash
run: |
cp build/mSWEEP-${{ github.ref_name }}-arm64-apple-darwin22/mSWEEP-${{ github.ref_name }}-arm64-apple-darwin22.tar.gz .
cp build/mSWEEP-${{ github.ref_name }}-x86_64-apple-darwin22/mSWEEP-${{ github.ref_name }}-x86_64-apple-darwin22.tar.gz .
cp build/mSWEEP-${{ github.ref_name }}-x86_64-redhat-linux/mSWEEP-${{ github.ref_name }}-x86_64-redhat-linux.tar.gz .
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ github.ref_name }}
draft: true
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
files: |
mSWEEP-*.tar.gz

0 comments on commit b295738

Please # to comment.