-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mejoras en el README.md y pipeline de release
- Loading branch information
Rubentxu
committed
Apr 21, 2024
1 parent
8e80604
commit 94c222a
Showing
2 changed files
with
505 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Build JAR with Gradle | ||
run: ./gradlew clean :pipeline-cli:shadowJar | ||
|
||
- name: Set up GraalVM | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
graalvm-version: '22.2.0' | ||
java-version: '11' | ||
|
||
- name: Build native image | ||
run: | | ||
native-image --class-path pipeline-cli/build/libs/pipeline-cli-1.0-SNAPSHOT-all.jar \ | ||
-H:Name=pipeline-kts dev.rubentxu.pipeline.cli.PipelineCliCommand | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload JAR to Release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./pipeline-cli/build/libs/pipeline-cli-1.0-SNAPSHOT-all.jar | ||
asset_name: pipeline-cli-1.0-SNAPSHOT-all.jar | ||
asset_content_type: application/java-archive | ||
|
||
- name: Upload Native Image to Release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./pipeline-kts | ||
asset_name: pipeline-kts | ||
asset_content_type: application/octet-stream |
Oops, something went wrong.