From 07570f003e52c331ccdac8f0e7477c65572cbf17 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sat, 17 Jul 2021 19:46:56 +0200 Subject: [PATCH] ci: use eine/tip to release artifacts --- .github/workflows/Test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 35edb8c..5cd874f 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -194,3 +194,24 @@ jobs: run: | openFPGALoader --help openFPGALoader --detect || true + + + Release: + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/tags/')) + needs: [ lin-test, win-test ] + runs-on: ubuntu-latest + name: '📦 Release' + steps: + + - name: '📥 Download artifacts' + uses: actions/download-artifact@v2 + with: + path: artifact + + # Tagged: create a pre-release or a release (semver) + # Untagged: update the assets of pre-release 'nightly' + - uses: eine/tip@master + with: + token: ${{ github.token }} + tag: 'nightly' + files: artifact/**/*