Skip to content

Commit

Permalink
Create an GitHub workflow that create JPro releases artifacts (#33)
Browse files Browse the repository at this point in the history
Create an GitHub workflow that create JPro releases artifacts
  • Loading branch information
besidev authored May 24, 2023
1 parent 53379d1 commit a80da30
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release build

on:
release:
types:
- created

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Create JPro distribution
run: |
./gradlew clean jproRelease
ls build/distributions/
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/distributions/HelloJPro-jpro.zip
asset_name: Hello-JPro.zip
asset_content_type: application/zip

0 comments on commit a80da30

Please sign in to comment.