Skip to content

Commit be24fd5

Browse files
CI: Use a single job to publish releases (#122)
1 parent b636d35 commit be24fd5

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ jobs:
591591

592592

593593

594-
release_linux:
594+
release_packages:
595595
# Do not run the release procedure if any of the builds has failed
596596
needs: [ build_linux, build_macos ]
597597
runs-on: ubuntu-20.04
@@ -622,6 +622,9 @@ jobs:
622622
zip -r9 anvill_ubuntu-20.04_packages.zip \
623623
ubuntu-20.04*
624624
625+
zip -r9 anvill_macos-10.15_packages.zip \
626+
macos-10.15*
627+
625628
- name: Upload the Ubuntu 18.04 packages
626629
uses: actions/upload-release-asset@v1
627630

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

649-
650-
651-
652-
release_macos:
653-
# Do not run the release procedure if any of the builds has failed
654-
needs: [ build_linux, build_macos ]
655-
runs-on: 'macos-10.15'
656-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
657-
658-
steps:
659-
- name: Download all artifacts
660-
uses: actions/download-artifact@v2
661-
662-
- name: Draft the new release
663-
id: create_release
664-
uses: actions/create-release@v1
665-
666-
env:
667-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
668-
669-
with:
670-
tag_name: ${{ github.ref }}
671-
release_name: Version ${{ github.ref }}
672-
draft: true
673-
prerelease: true
674-
675-
- name: Group the packages by platform
676-
run: |
677-
zip -r9 anvill_macos-10.15_packages.zip \
678-
macos-10.15*
679-
680652
- name: Upload the macOS 10.15 packages
681653
uses: actions/upload-release-asset@v1
682654

0 commit comments

Comments
 (0)