From a7e99a79fecbbf9efa8ad7a17386eed2c84c23a2 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Sun, 4 May 2025 11:39:12 -0400 Subject: [PATCH] recreate publish --- .forgejo/workflows/publish.yml | 59 ++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 3bc073e..ba48eee 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -1,24 +1,35 @@ -# name: publish -# -# on: -# release: -# types: [created] -# -# jobs: -# build: -# runs-on: ubuntu-latest -# steps: -# - name: checkout repository -# uses: actions/checkout@v2 -# - name: set up java -# uses: actions/setup-java@v1 -# with: -# java-version: '11' -# - name: build with maven -# run: mvn --batch-mode --file pom.xml package -# - name: upload to release -# uses: skx/github-action-publish-binaries@master -# env: -# GITHUB_TOKEN: ${{ github.token }} -# with: -# args: 'bundle/target/*.ear' +name: publish + +on: + release: + types: [created] + push: + tags: + - '*' + +jobs: + build: + runs-on: docker + steps: + - name: checkout repository + uses: https://gitea.com/actions/checkout@v2 + - name: set up java + uses: https://gitea.com/actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + - name: Set up Maven + uses: https://github.com/stCarolas/setup-maven@v5 + with: + maven-version: 3.9.9 + - name: build with maven + run: mvn --batch-mode --file pom.xml package + - name: upload to release + uses: https://gitea.com/actions/release-action@main + env: + GITHUB_TOKEN: ${{ github.token }} + with: + files: |- + bundle/target/*.ear + api_key: '${{secrets.RELEASE_TOKEN}}' +