Release twice for parallel runs

pull/35/head
James Ball 2021-06-06 22:50:55 +01:00
rodzic 310db11c1e
commit e1785695ab
1 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -24,17 +24,23 @@ jobs:
echo "VERSION=$version" >> $env:GITHUB_ENV echo "VERSION=$version" >> $env:GITHUB_ENV
echo "Release version $version" > CHANGELOG echo "Release version $version" > CHANGELOG
mv "target/lib/osci-render-$version.jar" "target/lib/osci-render-win-$version.jar" mv "target/lib/osci-render-$version.jar" "target/lib/osci-render-win-$version.jar"
- name: Upload Windows binaries and jar ls target/lib/
uses: actions/upload-artifact@v2 - name: Release
uses: softprops/action-gh-release@v1
with: with:
name: windows body_path: CHANGELOG
path: target/lib tag_name: v${{ env.VERSION }}
files: |
target/lib/osci-render-${{ env.VERSION }}.exe
target/lib/osci-render-win-${{ env.VERSION }}.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: jameshball/osci-render
build-debian: build-debian:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-windows
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up JDK 16 - name: Set up JDK 16
@ -49,15 +55,12 @@ jobs:
version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout) version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
echo "VERSION=$version" >> $GITHUB_ENV echo "VERSION=$version" >> $GITHUB_ENV
mv target/lib/osci-render-$version.jar target/lib/osci-render-unix-$version.jar mv target/lib/osci-render-$version.jar target/lib/osci-render-unix-$version.jar
- name: Download all workflow run artifacts ls target/lib/
uses: actions/download-artifact@v2
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
tag_name: v${{ env.VERSION }} tag_name: v${{ env.VERSION }}
files: | 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-${{ env.VERSION }}.deb
target/lib/osci-render-unix-${{ env.VERSION }}.jar target/lib/osci-render-unix-${{ env.VERSION }}.jar
env: env: