fix: version detection strategy didn't work for with custom branding #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish | |
| on: | |
| push: | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+*' | |
| workflow_dispatch: | |
| jobs: | |
| newRelease: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Set up JDK | |
| uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Set up Gradle | |
| uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3 | |
| - name: Use tag as version | |
| run: echo "${GITHUB_REF#refs/*/}" > version.txt | |
| - name: Build and Publish Artifacts | |
| run: >- | |
| ./gradlew | |
| --build-cache | |
| build | |
| publish | |
| -PciBuild=true | |
| -Partifacts.itemis.cloud.user=${{secrets.ARTIFACTS_ITEMIS_CLOUD_USER}} | |
| -Partifacts.itemis.cloud.pw=${{secrets.ARTIFACTS_ITEMIS_CLOUD_PW}} | |
| -Pgpr.user=${{ github.actor }} | |
| -Pgpr.key=${{ secrets.GITHUB_TOKEN }} | |
| -Pgpr.token=${{ secrets.GITHUB_TOKEN }} |