mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Merge pull request #880 from hamishcoleman/release
Only trigger automatic release process on annotated tags
This commit is contained in:
commit
6acca5085b
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
@ -479,6 +479,10 @@ jobs:
|
||||||
name: binaries
|
name: binaries
|
||||||
path: binaries
|
path: binaries
|
||||||
|
|
||||||
|
# Given the clearly documented use of annotated tags to signal releases,
|
||||||
|
# it seems strange that there is no simple way to trigger actions if the
|
||||||
|
# tag is annotated. So we need to jump through some hoops.
|
||||||
|
#
|
||||||
upload_release:
|
upload_release:
|
||||||
name: Upload Release Assets
|
name: Upload Release Assets
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
@ -492,12 +496,18 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get Tag Type
|
||||||
|
run: |
|
||||||
|
echo '::set-output name=TAGTYPE::$(git cat-file -t $GITHUB_REF)'
|
||||||
|
|
||||||
- name: Fetch all Artifacts
|
- name: Fetch all Artifacts
|
||||||
|
if: steps.get_tagtype.outputs.TAGTYPE == 'tag'
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Upload Assets to Release
|
- name: Upload Assets to Release
|
||||||
|
if: steps.get_tagtype.outputs.TAGTYPE == 'tag'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user