Skip to content

Commit

Permalink
Updated pipeline to create Github release
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiolk committed May 15, 2024
1 parent 4220272 commit 08fc5db
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/create_github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,25 @@ jobs:
shell: bash
- name: Step 1
id: step1
run: echo "::set-output name=myOutput::Hello from Job 1"
run: echo "::set-output name=myOutput::1.0.4"
# - uses: ncipollo/release-action@v1
# with:
# tag: ${{ steps.build.outputs.versionName }}
# replacesArtifacts: true
# artifacts: build/libs/detekt-rules.jar

job2:
needs: job1
needs: build
runs-on: ubuntu-latest
steps:
- name: Step 2
run: echo "Output from Job 1 ${{ needs.build.outputs.myOutput }}"
run: echo "Output from Job 1 ${{ needs.build.outputs.myOutput }}"
- name: Generate jar
run: |
./gradlew jar
echo $versionName
- uses: ncipollo/release-action@v1
with:
tag: ${{ needs.build.outputs.myOutput }}
replacesArtifacts: true
artifacts: build/libs/detekt-rules.jar

0 comments on commit 08fc5db

Please sign in to comment.