diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-03-27 00:57:13 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-03-27 00:57:13 +0000 |
commit | 1f913420432b0c61fb8efc85f18b534db084599b (patch) | |
tree | 32417ff14b9dab91783aded329a587ee538ef3fc | |
parent | Don't run upx for FreeBSD (diff) | |
download | miniserve-1f913420432b0c61fb8efc85f18b534db084599b.tar.gz miniserve-1f913420432b0c61fb8efc85f18b534db084599b.zip |
Re-add publish instructions
-rw-r--r-- | .github/workflows/publish.yml | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 47aeee1..53480cd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,9 @@ name: Publish -on: [push, pull_request] +on: + push: + tags: + - 'v*' jobs: publish: @@ -131,3 +134,25 @@ jobs: args: --lzma strip: ${{ matrix.strip }} if: ${{ matrix.compress }} + + - name: Get tag name + id: tag_name + run: | + echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} + shell: bash + + - name: Get CHANGELOG.md entry + id: changelog_reader + uses: mindsers/changelog-reader-action@v1 + with: + version: ${{ steps.tag_name.outputs.current_version }} + path: ./CHANGELOG.md + + - name: Release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ matrix.artifact_name }} + tag: ${{ github.ref }} + asset_name: miniserve-$tag-${{ matrix.release_name }} + body: ${{ steps.changelog_reader.outputs.log_entry }} |