From aff54e17e5bb0642df2417014cb541ff0900a114 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 17 Oct 2019 16:12:42 -0700 Subject: 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 --- .github/workflows/mac.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to '.github/workflows/mac.yml') 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 -- cgit v1.2.3-70-g09d2