Skip to content

Commit

Permalink
change(build): get version by doing some dark bash magicks
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Oct 7, 2020
1 parent 5592f8a commit 5519b7b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/fsts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-latest
name: Build FSTs
steps:
- name: Get the version
id: get_version
# Stolen from: https://github.community/t/how-to-get-just-the-tag-name/16241/6
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v2
with:
repository: giellalt/giella-core
Expand Down Expand Up @@ -47,7 +51,7 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: "Automatic release ${{ github.ref }}"
body: "Automatic release ${{ steps.get_version.outputs.VERSION }}"
draft: false
prerelease: false
- name: Attach FSTs to the release
Expand All @@ -57,5 +61,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./lang/src/fsts.zip
asset_name: plains-cree-fsts-${{ github.ref }}.zip
asset_name: plains-cree-fsts-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip

0 comments on commit 5519b7b

Please sign in to comment.