Skip to content

Commit 4bcab57

Browse files
authored
Update create-release Action (#29)
* Closes #27 * Closes #28 Signed-off-by: Mike Detwiler <mike@detwiler.io>
1 parent faf6795 commit 4bcab57

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103

104104
steps:
105105
- name: Download Distribution Artifacts
106-
uses: actions/download-artifact@v2
106+
uses: actions/download-artifact@v3
107107
with:
108108
name: distribution-artifacts
109109

@@ -114,20 +114,8 @@ jobs:
114114
115115
- name: Create Release
116116
id: create-release
117-
uses: actions/create-release@v1
118-
env:
119-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120-
with:
121-
tag_name: v${{ env.PROJECT_VERSION }}
122-
release_name: Release ${{ env.PROJECT_VERSION }}
123-
124-
- name: Upload Release Asset
125-
id: upload-release-asset
126-
uses: actions/upload-release-asset@v1
127-
env:
128-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117+
uses: softprops/action-gh-release@v1
129118
with:
130-
upload_url: ${{ steps.create-release.outputs.upload_url }}
131-
asset_path: ${{ env.PROJECT_NAME }}-${{ env.PROJECT_VERSION }}.tar.gz
132-
asset_name: ${{ env.PROJECT_NAME }}-${{ env.PROJECT_VERSION }}.tar.gz
133-
asset_content_type: application/gzip
119+
name: Release ${{ env.PROJECT_VERSION }}
120+
files: ${{ env.PROJECT_NAME }}-${{ env.PROJECT_VERSION }}.tar.gz
121+
fail_on_unmatched_files: true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![ci](https://github.com/quickhatch/quickhatch-autotools/workflows/ci/badge.svg)](https://github.com/quickhatch/quickhatch-autotools/actions)
2+
13
# quickhatch-autotools
24

35
Autoconf macros and auxiliary build tools for use with the [GNU Autotools][4].

0 commit comments

Comments
 (0)