Skip to content

Commit

Permalink
Update create_release_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthale authored May 25, 2024
1 parent 109c2bc commit 7c094ef
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/create_release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,46 @@ jobs:
release-url: ${{ steps.get_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
github-token: ${{ secrets.GITHUB_TOKEN }}

build-osx-arm:

runs-on: macos-14

steps:
- uses: actions/checkout@v2
- name: Set up JDK 22
uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '22'
architecture: 'aarch64' # defaults to 'x64'
cache: 'maven'

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn clean install -Ppackage -f PhotoSlide/pom.xml

- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload Release Asset OSX
id: upload-release-asset
uses: csexton/release-asset-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
pattern: PhotoSlide/target/*.dmg
release-url: ${{ steps.get_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
github-token: ${{ secrets.GITHUB_TOKEN }}

build-win:

runs-on: windows-latest
Expand Down

0 comments on commit 7c094ef

Please sign in to comment.