2.0.0-beta.5 #67
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Release Artifacts | |
on: | |
release: | |
types: [created] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: microsoft | |
java-version: 21 | |
- name: Make Gradle executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload GitHub Release | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh release upload ${{ github.ref_name }} build/libs/Spikedog.jar & | |
gh release upload ${{ github.ref_name }} info-module/build/libs/info-module.jar & | |
gh release upload ${{ github.ref_name }} reload-module/build/libs/reload-module.jar & | |
- name: Upload to Diruptio project | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
curl -X GET -H "Content-Type: text/plain" -H "${{ secrets.AUTHORIZATION_HEADER }}" "https://api.diruptio.de/project/version/create?project=spikedog&version=${{ github.ref_name }}&tags=" | |
cat build/libs/Spikedog.jar | curl -X GET -H "Content-Type: text/plain" -H "${{ secrets.AUTHORIZATION_HEADER }}" --data @- "https://api.diruptio.de/project/version/upload?project=spikedog&version=${{ github.ref_name }}&file=Spikedog.jar" | |
cat info-module/build/libs/info-module.jar | curl -X GET -H "Content-Type: text/plain" -H "${{ secrets.AUTHORIZATION_HEADER }}" --data @- "https://api.diruptio.de/project/version/upload?project=spikedog&version=${{ github.ref_name }}&file=info-module.jar" | |
cat reload-module/build/libs/reload-module.jar | curl -X GET -H "Content-Type: text/plain" -H "${{ secrets.AUTHORIZATION_HEADER }}" --data @- "https://api.diruptio.de/project/version/upload?project=spikedog&version=${{ github.ref_name }}&file=reload-module.jar" | |
- name: Publish to Diruptio Maven repository | |
env: | |
DIRUPTIO_MAVEN_USERNAME: ${{ secrets.DIRUPTIO_MAVEN_USERNAME }} | |
DIRUPTIO_MAVEN_PASSWORD: ${{ secrets.DIRUPTIO_MAVEN_PASSWORD }} | |
run: ./gradlew publish --stacktrace |