Merge pull request #101 from umarcor/ci/nightly

ci: use eine/tip to release artifacts
This commit is contained in:
Gwenhael Goavec-Merou 2021-07-21 07:03:23 +02:00 committed by GitHub
commit 84e85d4ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -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/**/*