kopia lustrzana https://github.com/jameshball/osci-render
Add github actions code for MacOS
rodzic
dd6751b8cc
commit
999bca8fc9
|
@ -5,7 +5,7 @@ on:
|
||||||
branches: [ release ]
|
branches: [ release ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release-windows:
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ jobs:
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: |
|
run: |
|
||||||
mvn -B package
|
mvn -B package
|
||||||
|
mvn -B jpackage:jpackage@win
|
||||||
$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
|
||||||
|
@ -33,3 +34,29 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_REPOSITORY: jameshball/osci-render
|
GITHUB_REPOSITORY: jameshball/osci-render
|
||||||
|
|
||||||
|
release-mac:
|
||||||
|
|
||||||
|
runs-on: macos-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
|
||||||
|
mvn -B jpackage:jpackage@mac
|
||||||
|
version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
|
||||||
|
echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: v${{ env.VERSION }}
|
||||||
|
files: target/osci-render-${{ env.VERSION }}.dmg
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GITHUB_REPOSITORY: jameshball/osci-render
|
||||||
|
|
10
pom.xml
10
pom.xml
|
@ -126,16 +126,18 @@
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>win</id>
|
<id>win</id>
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>jpackage</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<icon>src/main/resources/icons/icon.ico</icon>
|
<icon>src/main/resources/icons/icon.ico</icon>
|
||||||
<winMenu>true</winMenu>
|
<winMenu>true</winMenu>
|
||||||
<winMenuGroup>osci-render</winMenuGroup>
|
<winMenuGroup>osci-render</winMenuGroup>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>mac</id>
|
||||||
|
<configuration>
|
||||||
|
<icon>src/main/resources/icons/icon.icns</icon>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Ładowanie…
Reference in New Issue