Skip to content

Commit

Permalink
chore: add workflow for snapshot builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed Oct 8, 2024
1 parent 564bec8 commit e9d484f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e9d484f

Please sign in to comment.