From 9b71eac2d24e4d55313ef739b307983a3dea4a12 Mon Sep 17 00:00:00 2001 From: "kathrin.resek" Date: Sat, 21 Mar 2026 18:34:17 +0100 Subject: build(ci): switching from GitLab CI to GitHub Actions --- .github/workflows/release.yml | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/release.yml (limited to '.github/workflows/release.yml') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fe22239 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,59 @@ +name: Release + +on: + push: + branches: + - '**' + tags: + - 'v*' + pull_request: + branches: + - '**' + workflow_dispatch: + +env: + LC_ALL: "en_US.UTF-8" + LANG: "en_US.UTF-8" + LANGUAGE: "en_US" + LIB_NAME: "MOA-SIG" + PROJECT_PATH: '.' + PROJECT_NAME: 'moa-sig' + SECURE_LOG_LEVEL: "debug" + +jobs: + release: + name: Release + environment: release + runs-on: [self-hosted, linux] + if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch' }} + + steps: + + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + cache: gradle + + - name: Set VERSION and SHORT_SHA + run: | + echo "SHORT_SHA=${GITHUB_SHA:0:8}" >> "$GITHUB_ENV" + cd moaSig + VERSION=$(./gradlew -q properties --console=plain | grep "^version:" | awk '{print $2}') + echo "VERSION=${VERSION}" >> "$GITHUB_ENV" + + - name: Build Release Package + run: | + echo "Releasing version ${{ env.VERSION }} of ${{ env.LIB_NAME }}" + echo "Publishing version ${{ env.VERSION }} to public EGIZ maven" + cd ./moaSig + ./gradlew clean + + - name: Upload Release Artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ env.PROJECT_NAME }}-${{ env.SHORT_SHA }}-release + path: | + release/${{ env.VERSION }}/moa-spss-${{ env.VERSION }}.zip + release/${{ env.VERSION }}/moa-spss-lib-${{ env.VERSION }}.zip \ No newline at end of file -- cgit v1.2.3