Skip to content

Commit

Permalink
Update GitHub Actions workflow to trigger on release creation and fix…
Browse files Browse the repository at this point in the history
… asset naming
  • Loading branch information
emcrisostomo committed Dec 30, 2024
1 parent 824dd34 commit 5ccd5b4
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release-tarball.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Release tarball

on:
push:
tags:
- '*'
release:
types: [created]

jobs:
build:
Expand All @@ -28,14 +27,10 @@ jobs:
- name: Build and Test
run: make distcheck

- name: Extract Tag Name
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./fswatch-${{ env.TAG_NAME }}.tar.gz
asset_name: fswatch-${{ env.TAG_NAME }}.tar.gz
asset_path: ./fswatch-${{ github.event.release.tag_name }}.tar.gz
asset_name: fswatch-${{ github.event.release.tag_name }}.tar.gz
asset_content_type: application/gzip

0 comments on commit 5ccd5b4

Please sign in to comment.