Skip to content

Commit

Permalink
adjust release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Schrenk committed Nov 27, 2019
1 parent a405792 commit b5b7c8f
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
name: javafx-testkit-${{matrix.os}}
path: target/javafx-testkit-${{matrix.os}}.zip
release:
name: Create Release
name: Creates the release with the given tag and uploads all assets
runs-on: ubuntu-latest
needs: [build]

steps:
- name: Checkout Code
Expand All @@ -44,24 +45,39 @@ jobs:
Automated release via github actions
draft: false
prerelease: false

publish:
name: Uploads the assets
runs-on: ubuntu-latest
needs: [build, release]
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- name: Downloads generated files (Windows)
uses: actions/download-artifact@v1
with:
name: javafx-testkit-${{matrix.os}}
name: javafx-testkit-windows-latest
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./javafx-testkit-windows-latest.zip
asset_name: javafx-testkit-windows.zip
asset_content_type: application/zip
- name: Downloads generated files (Linux)
uses: actions/download-artifact@v1
with:
name: javafx-testkit-ubuntu-latest
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./javafx-testkit-ubuntu-latest.zip
asset_name: javafx-testkit-linux.zip
asset_content_type: application/zip
- name: Downloads generated files (MacOS)
uses: actions/download-artifact@v1
with:
name: javafx-testkit-macOS-latest
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
asset_path: ./javafx-testkit-${{matrix.os}}.zip
asset_name: javafx-testkit-${{matrix.os}}.zip
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./javafx-testkit-macOS-latest.zip
asset_name: javafx-testkit-macOS.zip
asset_content_type: application/zip

0 comments on commit b5b7c8f

Please sign in to comment.