Skip to content

Commit

Permalink
Merge pull request #105 from salesforcecli/sm/env-secrets-for-upload
Browse files Browse the repository at this point in the history
fix: secrets for gh upload, aws secrets only where needed
  • Loading branch information
iowillhoit authored May 31, 2024
2 parents 00c7c41 + b688735 commit 7341009
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tarballs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ on:
jobs:
tarballs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SFDX_HIDE_RELEASE_NOTES: true
SF_DISABLE_TELEMETRY: true
runs-on: ubuntu-20-8core
Expand All @@ -48,9 +46,19 @@ jobs:
- run: yarn test:smoke-unix
- if: inputs.upload
run: yarn upload:tarballs
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- if: inputs.upload && inputs.cli && inputs.version && inputs.channel
run: yarn channel:promote --cli ${{ inputs.cli }} --version ${{ inputs.version }} --target ${{ inputs.channel }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- if: inputs.upload
run: gh release upload ${{ inputs.version }} ./dist/*.gz --clobber --repo ${{ github.repository}}
env:
GH_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
- if: inputs.upload
run: gh release upload ${{ inputs.version }} ./dist/*.xz --clobber --repo ${{ github.repository}}
env:
GH_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}

0 comments on commit 7341009

Please sign in to comment.