clean up release action after dev work
This commit is contained in:
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Make GitHub Release on Tag
|
name: GitHub Release on Tag
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
@@ -17,23 +17,3 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}
|
name: Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}
|
||||||
- name: Download tarball
|
|
||||||
run: curl -LO https://github.com/netdisco/netdisco/archive/refs/tags/${{ steps.get_tag.outputs.TAGVALUE }}.tar.gz
|
|
||||||
- name: Rename tarball
|
|
||||||
run: mv ${{ steps.get_tag.outputs.TAGVALUE }}.tar.gz netdisco-mibs.tar.gz
|
|
||||||
- name: Get upload URL
|
|
||||||
run: echo UPLOAD_URL=${{ steps.create_release.outputs.upload_url }} | cut -d ' ' -f 1 >> $GITHUB_ENV
|
|
||||||
- name: Upload tarball
|
|
||||||
run: |
|
|
||||||
curl \
|
|
||||||
-f \
|
|
||||||
-sSL \
|
|
||||||
-XPOST \
|
|
||||||
-H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' \
|
|
||||||
-H 'Content-Type: application/gzip' \
|
|
||||||
--upload-file 'netdisco-mibs.tar.gz' \
|
|
||||||
'${{ env.UPLOAD_URL }}=netdisco-mibs.tar.gz'
|
|
||||||
- name: Setup tmate session
|
|
||||||
uses: mxschmitt/action-tmate@v3
|
|
||||||
if: always()
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user