kopia lustrzana https://github.com/jameshball/osci-render
Add debian release
rodzic
cc3c1a0051
commit
80f25d402c
|
@ -5,7 +5,7 @@ on:
|
||||||
branches: [ release ]
|
branches: [ release ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-windows:
|
build-windows:
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
@ -23,14 +23,44 @@ jobs:
|
||||||
$version= mvn help:evaluate -Dexpression="project.version" -q -DforceStdout
|
$version= mvn help:evaluate -Dexpression="project.version" -q -DforceStdout
|
||||||
echo "VERSION=$version" >> $env:GITHUB_ENV
|
echo "VERSION=$version" >> $env:GITHUB_ENV
|
||||||
echo "Release version $version" > CHANGELOG
|
echo "Release version $version" > CHANGELOG
|
||||||
- name: Release
|
mv target/lib/osci-render-${{ env.VERSION }}.jar target/lib/osci-render-win-${{ env.VERSION }}.jar
|
||||||
uses: softprops/action-gh-release@v1
|
- name: Upload Windows binaries and jar
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
body_path: CHANGELOG
|
name: windows
|
||||||
tag_name: v${{ env.VERSION }}
|
path: target/lib
|
||||||
files: |
|
|
||||||
target/lib/osci-render-${{ env.VERSION }}.exe
|
build-debian:
|
||||||
target/lib/osci-render-${{ env.VERSION }}.jar
|
|
||||||
env:
|
runs-on: ubuntu-latest
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GITHUB_REPOSITORY: jameshball/osci-render
|
needs: build-windows
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 16
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '16'
|
||||||
|
distribution: 'adopt'
|
||||||
|
- name: Build with Maven
|
||||||
|
run: |
|
||||||
|
mvn -B package
|
||||||
|
mvn -B jpackage:jpackage@debian
|
||||||
|
version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
|
||||||
|
echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
|
mv target/lib/osci-render-${{ env.VERSION }}.jar target/lib/osci-render-unix-${{ env.VERSION }}.jar
|
||||||
|
- name: Download all workflow run artifacts
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: v${{ env.VERSION }}
|
||||||
|
files: |
|
||||||
|
windows/osci-render-${{ env.VERSION }}.exe
|
||||||
|
windows/osci-render-win-${{ env.VERSION }}.jar
|
||||||
|
target/lib/osci-render-${{ env.VERSION }}.deb
|
||||||
|
target/lib/osci-render-unix-${{ env.VERSION }}.jar
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GITHUB_REPOSITORY: jameshball/osci-render
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue