Skip to content

Commit a093867

Browse files
authored
testing new release workflow
Attempting to pull data from the webhook payload. Instead of running bump to homebrew formula, just output values to console
1 parent 543cbcd commit a093867

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish_release:
9+
name: Publish Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Get version slug
13+
id: get_version
14+
run: |
15+
echo release.tag_name is ${{ github.event.release.tag_name }}
16+
echo GITHUB_REF is ${{ github.ref }}
17+
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
18+
- name: Checkout
19+
uses: actions/checkout@v1
20+
- name: Package
21+
run: tar -cvzf archive-fusionvm.tar.gz archive_fusionvm
22+
- name: Upload Asset to Release
23+
id: upload_release_asset
24+
uses: actions/[email protected]
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
upload_url: ${{ github.event.release.upload_url }}
29+
asset_path: ./archive-fusionvm.tar.gz
30+
asset_name: archive-fusionvm-${{ steps.get_version.outputs.VERSION }}.tar.gz
31+
asset_content_type: application/gzip
32+
- name: Print download URL
33+
run: echo ${{ steps.upload_release_asset.outputs.browser_download_url }}

0 commit comments

Comments
 (0)