1.1.32 #28
Workflow file for this run
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 main | |
on: | |
release: | |
types: [published] | |
permissions: | |
packages: write | |
env: | |
NEW_VERSION: ${{ github.event.release.tag_name }} | |
jobs: | |
build: | |
name: Build and publish docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
architecture: x64 | |
cache: 'gradle' | |
- name: Build gradle artifacts | |
shell: bash | |
run: | | |
./gradlew shadowJar | |
env: | |
GITHUB_USERNAME: x-access-token | |
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload artifact | |
run: ./gradlew -Pversion=${{ env.NEW_VERSION }} publish | |
env: | |
GITHUB_USERNAME: x-access-token | |
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} |