Skip to content

Commit

Permalink
CI: Use a single job to publish releases (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrogario authored Feb 22, 2021
1 parent b636d35 commit be24fd5
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ jobs:



release_linux:
release_packages:
# Do not run the release procedure if any of the builds has failed
needs: [ build_linux, build_macos ]
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -622,6 +622,9 @@ jobs:
zip -r9 anvill_ubuntu-20.04_packages.zip \
ubuntu-20.04*
zip -r9 anvill_macos-10.15_packages.zip \
macos-10.15*
- name: Upload the Ubuntu 18.04 packages
uses: actions/upload-release-asset@v1

Expand All @@ -646,37 +649,6 @@ jobs:
asset_name: anvill_ubuntu-20.04_packages.zip
asset_content_type: application/gzip




release_macos:
# Do not run the release procedure if any of the builds has failed
needs: [ build_linux, build_macos ]
runs-on: 'macos-10.15'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')

steps:
- name: Download all artifacts
uses: actions/download-artifact@v2

- name: Draft the new release
id: create_release
uses: actions/create-release@v1

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

with:
tag_name: ${{ github.ref }}
release_name: Version ${{ github.ref }}
draft: true
prerelease: true

- name: Group the packages by platform
run: |
zip -r9 anvill_macos-10.15_packages.zip \
macos-10.15*
- name: Upload the macOS 10.15 packages
uses: actions/upload-release-asset@v1

Expand Down

0 comments on commit be24fd5

Please sign in to comment.