This repository has been archived by the owner on May 10, 2024. It is now read-only.
💗 further fix backtrack lol #67
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: Build & Release | |
on: [push] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- name: Change wrapper permissions | |
run: powershell -command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process" | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload Artifact | |
uses: actions/[email protected] | |
with: | |
name: Built Jar | |
path: build/libs/*.jar | |
- name: Automatic Release | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
title: "Stormy ${{ env.sha_short }}" | |
files: | | |
build/libs/*.jar |