Skip to content

Commit

Permalink
test-and-learn compute release version
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 21, 2023
1 parent 6975aff commit 6758a56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
build:
runs-on: windows-latest
steps:
- name: Compute Release Version
run: |
$env:RELEASE_VERSION = ((${{ github.ref_name }}).Trim()).Substring(8)
- uses: actions/checkout@v4
with:
ref: main
Expand Down Expand Up @@ -42,7 +46,7 @@ jobs:

- name: Build Main
run: |
$env:RELEASE_VERSION = ((git symbolic-ref --short HEAD).Trim()).Substring(8)
$env:RELEASE_VERSION = ((${{ github.ref_name }}).Trim()).Substring(8)
$env:CGO_CXXFLAGS="-I${{github.workspace}}\libs\webview2\build\native\include"
go build -a -trimpath -ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=$env:RELEASE_VERSION" -o cells-sync.exe
Expand Down

0 comments on commit 6758a56

Please sign in to comment.