Remove version from release archive
Makes downloading easier probably?
This commit is contained in:
parent
505eed6ea5
commit
e6a9caa1b5
1 changed files with 3 additions and 13 deletions
16
.github/workflows/release.yaml
vendored
16
.github/workflows/release.yaml
vendored
|
|
@ -19,26 +19,16 @@ jobs:
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
fwd_version: ${{ env.FWD_VERSION }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get the release version from the tag
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
# Apparently, this is the right way to get a tag name. Really?
|
|
||||||
#
|
|
||||||
# See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
|
|
||||||
echo "FWD_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
|
||||||
echo "version is: ${{ env.FWD_VERSION }}"
|
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.FWD_VERSION }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: ${{ env.FWD_VERSION }}
|
release_name: Release ${{ github.ref }}
|
||||||
|
|
||||||
release_assets:
|
release_assets:
|
||||||
name: Release assets
|
name: Release assets
|
||||||
|
|
@ -107,7 +97,7 @@ jobs:
|
||||||
- name: Build archive
|
- name: Build archive
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
staging="fwd-${{ needs.create-release.outputs.fwd_version }}-${{ matrix.target }}"
|
staging="fwd-${{ matrix.target }}"
|
||||||
mkdir -p "$staging"
|
mkdir -p "$staging"
|
||||||
|
|
||||||
if [ "${{ matrix.os }}" = "windows-2022" ]; then
|
if [ "${{ matrix.os }}" = "windows-2022" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue