Upload Release Artifacts #4
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
on: | |
create: | |
release: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
name: Upload Release Artifacts | |
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: 17 | |
- name: Make Gradle executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload Artifacts | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
directories=("build/libs/*" "reload/build/libs/*"); | |
for file in "${directories[@]}"; do gh release upload ${{ github.ref_name }} $file; done; |