Skip to content

Commit

Permalink
Remove AWS credentials step
Browse files Browse the repository at this point in the history
Corrected Github Release permissions
Installed the GoReleaser config file
  • Loading branch information
ringods committed Jun 22, 2023
1 parent 4413479 commit a4a5e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ jobs:
publish:
runs-on: ubuntu-latest
name: publish
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -152,16 +154,6 @@ jobs:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: us-east-2
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-duration-seconds: 7200
role-session-name: ${{ env.PROVIDER }}@githubActions
role-external-id: upload-pulumi-release
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }}
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
- name: Run GoReleaser
Expand Down
2 changes: 1 addition & 1 deletion deployment-templates/.goreleaser.yml → .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ archives:
name_template: '{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
before:
hooks:
- make tfgen
- make provider
builds:
- binary: pulumi-resource-matchbox
dir: provider
Expand Down

0 comments on commit a4a5e98

Please sign in to comment.