diff --git a/.github/workflows/dev_build.yml b/.github/workflows/dev_build.yml index c6ad5f03d..fe612b7e7 100644 --- a/.github/workflows/dev_build.yml +++ b/.github/workflows/dev_build.yml @@ -15,7 +15,7 @@ on: branches-ignore: ["main"] jobs: - build: + dev-build: runs-on: ubuntu-latest steps: - name: Checkout GCM diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 8d1d4ec28..4f4c16445 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -16,7 +16,7 @@ on: branches: ["main"] jobs: - create-release: + release: runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/release_pr_build.yml b/.github/workflows/release_pr_build.yml index 3bef689ec..607679e56 100644 --- a/.github/workflows/release_pr_build.yml +++ b/.github/workflows/release_pr_build.yml @@ -13,7 +13,7 @@ on: branches: [ "main" ] jobs: - build: + release-pr-build: runs-on: ubuntu-latest steps: - name: Checkout GCM @@ -25,6 +25,16 @@ jobs: java-version: '17' distribution: 'temurin' + - name: Get Version + run: | + echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" + + - name: Version Is Snapshot + if: ${{ endsWith(env.version, 'SNAPSHOT') }} + run: | + echo "::error Version is a SNAPSHOT. Update version to proper version." + exit 1 + - name: Build GCM run: mvn clean install -Prelease --file pom.xml