Read CHANGES.md #154
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 and Publish Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: set up Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
server-id: ${{ secrets.MAVEN_SETTINGS_SERVER_ID }} | |
- name: build jar | |
run: | | |
./gradlew build | |
- name: create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: build/libs/*.jar | |
tag_name: v1.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |