Skip to content

Commit

Permalink
build: attempt to add versioning flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjo committed Oct 17, 2023
1 parent 036f641 commit 8cb5eb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/native-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
- name: Determine version (branch)
if: env.BRANCH_NAME != 'master'
run: 'echo "PROJECT_VERSION=$(svu --pre-release ${{ env.BRANCH_NAME }}-alpha.$(git rev-list origin/master.. --count) --build ${{ github.run_number }})" >> "$GITHUB_ENV"'
run: 'echo "PROJECT_VERSION=$(svu --pre-release ${{ env.BRANCH_NAME }}-alpha.$(git rev-list origin/master.. --count))" >> "$GITHUB_ENV"'
- name: Determine version
if: env.BRANCH_NAME == 'master'
run: 'echo "PROJECT_VERSION=$(svu)" >> "$GITHUB_ENV"'
Expand Down Expand Up @@ -91,8 +91,9 @@ jobs:
with:
generate-job-summary: true
dependency-graph: generate-and-submit
- run: 'echo "PROJECT_VERSION=${{ needs.determine-version.outputs.projectVersion }}" >> "$GITHUB_ENV"'
- run: 'echo "Building $PROJECT_VERSION for Windows x64"'
- run: 'echo "PROJECT_VERSION=${{ needs.determine-version.outputs.projectVersion }}" >> "$env:GITHUB_ENV"'
- run: 'echo "Building $env:PROJECT_VERSION for Windows x64"'
- run: 'gu install native-image'
- name: Build native (windows x64)
env:
ORG_GRADLE_PROJECT_projectVersion: ${{ env.PROJECT_VERSION }}
Expand Down

0 comments on commit 8cb5eb3

Please sign in to comment.