Skip to content

Upload Release Artifacts #7

Upload Release Artifacts

Upload Release Artifacts #7

Workflow file for this run

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: |
echo ${{ github.ref_name }} > version.txt
gh release upload ${{ github.ref_name }} version.txt
gh release upload ${{ github.ref_name }} build/libs/Spikedog.jar
gh release upload ${{ github.ref_name }} reload/build/libs/reload.jar