diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-11 17:08:00 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-11 18:02:25 -0400 |
| commit | 617bd092c14e4cf997d99eea9d9ad2c5ce12e8af (patch) | |
| tree | daa46fa8ee9d867b28ecab7b24693a986db9aad9 /.github | |
| parent | 44f7dedc6ab60a39ffe7ba0b1838a6251654b16e (diff) | |
Set version in binary when creating releases
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9425057..5f8a312 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,9 @@ jobs: - uses: actions/checkout@v1 - name: Set ODIN_BRANCH from tag if available if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - run: echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + run: | + echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + echo "OLS_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Download LLVM and setup PATH run: | brew install llvm@17 @@ -39,7 +41,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: dist-arm64-darwin + name: dist-arm64-darwin path: ./dist dist-x86_64-darwin: @@ -49,7 +51,9 @@ jobs: - uses: actions/checkout@v1 - name: Set ODIN_BRANCH from tag if available if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - run: echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + run: | + echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + echo "OLS_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Download LLVM and setup PATH run: | brew install llvm@17 @@ -82,7 +86,9 @@ jobs: - uses: actions/checkout@v1 - name: Set ODIN_BRANCH from tag if available if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - run: echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + run: | + echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + echo "OLS_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Download LLVM run: | wget https://apt.llvm.org/llvm.sh @@ -115,7 +121,9 @@ jobs: - uses: actions/checkout@v1 - name: Set ODIN_BRANCH from tag if available if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - run: echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + run: | + echo "ODIN_BRANCH=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + echo "OLS_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Download LLVM run: | wget https://apt.llvm.org/llvm.sh @@ -154,6 +162,7 @@ jobs: run: | $tagName = $env:GITHUB_REF.Replace('refs/tags/', '') echo "ODIN_BRANCH=$tagName" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + echo "OLS_VERSION=$tagName" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Download Odin shell: cmd run: | |