Publish #17
This file contains 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: | ||
workflow_dispatch: | ||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
cache: gradle | ||
- uses: docker/setup-buildx-action@v3 | ||
- name: Run Bootstrap | ||
run: ./bootstrap.sh | ||
- name: Run Gradle Check | ||
run: ./gradlew check | ||
validate-release: | ||
name: Validate Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Validate Changelog | ||
uses: denisa/clq-action@v1 | ||
id: changelog | ||
with: | ||
changeMap: .github/clq/changemap.json | ||
mode: release | ||
- name: Validate Tag | ||
uses: denisa/semantic-tag-helper@v1 | ||
with: | ||
mode: test | ||
tag: ${{ steps.changelog.outputs.tag }} | ||
publish: | ||
if: github.repository == 'codebandits/gradle-container-plugin' | ||
needs: [ check, validate-release ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get Changelog | ||
uses: denisa/clq-action@v1 | ||
id: changelog | ||
with: | ||
changeMap: .github/clq/changemap.json | ||
mode: release | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
cache: gradle | ||
- name: Load Infrastructure Configuration | ||
uses: codebandits/github-actions/load-env@main | ||
id: configuration | ||
with: | ||
path: ./.github/configuration.env | ||
- uses: google-github-actions/auth@v2 | ||
with: | ||
project_id: ${{ steps.configuration.outputs.GCP_PROJECT_ID }} | ||
workload_identity_provider: ${{ steps.configuration.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER }} | ||
service_account: ${{ steps.configuration.outputs.GCP_SERVICE_ACCOUNT }} | ||
- name: Install SOPS | ||
uses: mdgreenwald/mozilla-sops-action@v1 | ||
- name: Run Bootstrap | ||
run: ./bootstrap.sh | ||
- name: Get Changelog | ||
uses: denisa/clq-action@v1 | ||
id: changelog | ||
Check failure on line 89 in .github/workflows/publish.yml GitHub Actions / PublishInvalid workflow file
|
||
with: | ||
changeMap: .github/clq/changemap.json | ||
mode: release | ||
- name: Publish Plugin | ||
run: ./gradlew publishPlugins -Pversion=${{ steps.changelog.outputs.version }} --validate-only | ||
# - name: Set Tag | ||
# uses: denisa/semantic-tag-helper@v1 | ||
# with: | ||
# mode: set | ||
# tag: ${{ steps.changelog.outputs.tag }} | ||
# | ||
# - name: Create Release | ||
# uses: ncipollo/release-action@v1 | ||
# with: | ||
# tag: ${{ steps.changelog.outputs.tag }} | ||
# prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }} | ||
# name: ${{ steps.changelog.outputs.version }} | ||
# body: ${{ steps.changelog.outputs.changes }} |