aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/mac.yml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-17 16:12:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-18 20:46:01 -0700
commitaff54e17e5bb0642df2417014cb541ff0900a114 (patch)
tree07bec7a04b5fb34e64a8fbae66d7ce2dd0e6cf7e /.github/workflows/mac.yml
parentf099b22820f09ef04395e46d822b0fe2cbcfeb8d (diff)
downloadsubsurface-aff54e17e5bb0642df2417014cb541ff0900a114.tar.gz
GitHub Actions: post releases
This so far just works on push and hopefullt pull requests, not for tags and therefore actual releases. In order not to conflict with the binaries from Travis, I changed the name to "ci-release" instead of "continuous". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to '.github/workflows/mac.yml')
-rw-r--r--.github/workflows/mac.yml29
1 files changed, 25 insertions, 4 deletions
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
index 0b7183c4e..6d3b422d0 100644
--- a/.github/workflows/mac.yml
+++ b/.github/workflows/mac.yml
@@ -76,9 +76,30 @@ jobs:
ln -s ${GRANTLEE_VERSION}/$(basename $i) .
popd
done
+ zip Subsurface.app.zip Subsurface.app
+ - name: store artifact
+ uses: actions/upload-artifact@master
+ with:
+ name: Subsurface.app.zip
+ path: build/Subsurface.app.zip
- - name: publish result
- uses: actions/upload-artifact@v1
+ publishRelease:
+ needs: desktopBuild
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout sources
+ uses: actions/checkout@v1
+ with:
+ fetch-depth: 1
+ - name: retrieve artifact
+ uses: actions/download-artifact@master
with:
- name: Subsurface-GitHub-Build.app
- path: build/Subsurface.app
+ name: Subsurface.app.zip
+ - name: create CI release
+ uses: ./.github/actions/release
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_REPO: ${{ github.repository }}
+ REF: ${{ github.ref }}
+ COMMIT: ${{ github.sha }}
+ BIN1: Subsurface.app.zip