aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorkathrin.resek <kathrin.resek@a-sit.at>2026-03-21 18:34:17 +0100
committerkathrin.resek <kathrin.resek@a-sit.at>2026-03-21 18:34:17 +0100
commit9b71eac2d24e4d55313ef739b307983a3dea4a12 (patch)
tree4cb1948da9406c730979d979d3d0b2baacd4e44e /.github/workflows/release.yml
parent32d859478da3c8368213ba398b70b8ee39861f03 (diff)
downloadmoa-sig-9b71eac2d24e4d55313ef739b307983a3dea4a12.tar.gz
moa-sig-9b71eac2d24e4d55313ef739b307983a3dea4a12.tar.bz2
moa-sig-9b71eac2d24e4d55313ef739b307983a3dea4a12.zip
build(ci): switching from GitLab CI to GitHub Actions
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml59
1 files changed, 59 insertions, 0 deletions
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