Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson authored Mar 27, 2023
1 parent 754023f commit 68be6cd
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,17 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
- id: create_release
name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.determine_version.outputs.semVer }}+run${{ github.run_number }}-attempt${{ github.run_attempt }}
release_name: Release ${{ steps.determine_version.outputs.semVer }} Run ${{ github.run_number }} Attempt ${{ github.run_attempt }}
draft: 'false'
prerelease: 'false'
draft: ${{ github.ref == 'refs/heads/master' && 'false' || 'true' }}
name: ${{ github.ref == 'refs/heads/master' && 'false' || 'true' }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.get_artifact.outputs.artifact }}
asset_name: ${{ steps.get_artifact_name.outputs.artifact }}
asset_content_type: application/octet-stream
tag_name: ${{ steps.determine_version.outputs.semVer }}+run${{ github.run_number }}-attempt${{ github.run_attempt }}
files: ${{ steps.get_artifact.outputs.artifact }}
- id: get_octopus_artifact
name: Create Octopus Artifact
run: |-
Expand Down

0 comments on commit 68be6cd

Please sign in to comment.