diff --git a/.forgejo/workflows/gradle.yml b/.forgejo/workflows/gradle.yml new file mode 100644 index 0000000..ee4384b --- /dev/null +++ b/.forgejo/workflows/gradle.yml @@ -0,0 +1,52 @@ +# +# Copyright 2024 Martin Goellnitz +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +name: Test and Package Trackdown + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + REGISTRY: ghcr.io + +jobs: + build: + + runs-on: provocon + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: https://github.com/actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + - name: Prepare Tools + run: sudo apt update ; sudo apt install -yq jq file curl mercurial git bash bash-completion + - name: Build with Gradle + uses: https://github.com/gradle/gradle-build-action@v2 + with: + arguments: build + - name: Extract Package + run: unzip build/distributions/*.zip + - name: Archive Package + uses: actions/upload-artifact@v4 + with: + name: trackdown + path: trackdown* \ No newline at end of file diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e5224de..61f4ed3 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -40,7 +40,7 @@ jobs: - name: Prepare Tools run: sudo apt update ; sudo apt install -yq jq file curl mercurial git bash bash-completion - name: Build with Gradle - uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 + uses: gradle/gradle-build-action@v2 with: arguments: build - name: Extract Package