From e9d484f8ad86e8ba7418dab9619664f6ac66de77 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 8 Oct 2024 17:32:43 +0200 Subject: [PATCH] chore: add workflow for snapshot builds --- .github/workflows/snapshots.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/snapshots.yml diff --git a/.github/workflows/snapshots.yml b/.github/workflows/snapshots.yml new file mode 100644 index 0000000..9cd45b9 --- /dev/null +++ b/.github/workflows/snapshots.yml @@ -0,0 +1,34 @@ +name: 'Run Tests' + +on: + workflow_dispatch: + schedule: + - cron: '0 12 * * 1' + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + + - name: Fetch Onkostar-API + run: | + curl -L --user dnpm:${{ secrets.PACKAGE_TOKEN }} \ + https://git.dnpm.dev/api/packages/Plugin-JF-Onkostar/generic/onkostar-api/2.11.1.6/onkostar-api-2.11.1.6.jar \ + --output ${{ github.workspace }}/libs/onkostar-api-2.11.1.6.jar + + - name: Create package + run: mvn package + + - name: Release + uses: softprops/action-gh-release@v2 + with: + draft: 'true' + make_latest: 'true' + generate_release_notes: 'true' + files: | + target/onkostar-plugin-dnpmexport*.jar \ No newline at end of file