Skip to content

Commit

Permalink
Test a publish workflow
Browse files Browse the repository at this point in the history
Authored-by: Leonhardt Koepsell <[email protected]>
  • Loading branch information
lnhrdt committed Nov 2, 2024
1 parent a0387a8 commit 2222632
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish

on:
push:
tags:
- 'v*'

jobs:
publish:
if: github.repository == 'codebandits/gradle-container-plugin'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: gradle

- name: Install SOPS
uses: mdgreenwald/mozilla-sops-action@v1

- name: Set Version
run: |
TAG="${{ github.ref_name }}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Run Bootstrap
run: ./bootstrap.sh

- name: Publish Plugin
run: ./gradlew publishPlugins -Pversion=$VERSION --validate-only

0 comments on commit 2222632

Please sign in to comment.