Skip to content

Commit

Permalink
Capture artifact file path in a separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrMolchagin committed Aug 1, 2024
1 parent 52b3950 commit a60c7f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/production-on-push-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,16 @@ jobs:
name: artifacts
path: .

- name: List target directory
run: ls

- name: Capture artifact file path
id: get_file
run: echo "FILE_PATH=$(ls ./*.jar)" >> $GITHUB_ENV

- name: Upload artifact 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: ./*.jar
asset_path: ${{ env.FILE_PATH }}
asset_name: production-salesforce-data-api-${{ steps.determine_version.outputs.new_tag }}.jar
asset_content_type: application/java-archive

0 comments on commit a60c7f3

Please sign in to comment.