Skip to content

Commit

Permalink
Update tag finding function in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas A. Christensen II <[email protected]>
  • Loading branch information
MillironX committed Apr 28, 2022
1 parent fa44812 commit 744f16a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: Binary Builder
on:
push:
tags:
- 'v[0-9]+.*'
- "v[0-9]+.*"
jobs:
binary_build:
name: Build Binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: get-version
uses: WyriHaximus/github-action-get-previous-tag@v1
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
version: "1.6"
arch: x64
- uses: julia-actions/julia-buildpkg@v1
- run: |
Expand All @@ -29,15 +33,15 @@ jobs:
cpu_target="x86-64"
)'
- env:
TAG: ${{ github.ref }}
TAG: ${{ steps.get-version.outputs.tag }}
run: |
tar cv -C build . | gzip -9 > HapLink-${TAG}_linux.x86_64.tar.gz
- uses: ffurrer2/extract-release-notes@v1
id: news
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
tag: ${{ steps.get-version.outputs.tag }}
file_glob: true
file: HapLink-*_{linux,mac,win}.x86_64.{tar.gz,zip}
body: |
Expand All @@ -55,14 +59,11 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- id: get-version
run: |
VERSION=${{ github.ref }}
VERSION=${VERSION/v/}
echo "::set-output name=VERSION::$VERSION"
uses: WyriHaximus/github-action-get-previous-tag@v1
- uses: docker/build-push-action@v2
with:
context: .
push: true
tags:
quay.io/millironx/haplink:${{ steps.get-version.outputs.VERSION }}
tags: |
quay.io/millironx/haplink:${{ steps.get-version.outputs.tag }}
quay.io/millironx/haplink:latest

0 comments on commit 744f16a

Please sign in to comment.