Add auto-release for packaging new .exe

pull/35/head
James H Ball 2021-05-03 19:34:55 +01:00 zatwierdzone przez GitHub
rodzic b27519cc71
commit 3bf2003376
1 zmienionych plików z 33 dodań i 0 usunięć

33
.github/workflows/release.yml vendored 100644
Wyświetl plik

@ -0,0 +1,33 @@
name: Maven Package and Release osci-render
on:
push:
branches: [ release ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 15
uses: actions/setup-java@v2
with:
java-version: '15'
distribution: 'adopt'
- name: Build with Maven
run: |
mvn -B package
$version= mvn help:evaluate -Dexpression="project.version" -q -DforceStdout
echo "VERSION=$version" >> $env:GITHUB_ENV
echo "Release version $version" > ${{ github.workflow }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workflow }}-CHANGELOG.txt
tag_name: v${{ env.VERSION }}
files: target/osci-render-${{ env.VERSION }}.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: jameshball/osci-render