Bot permissions (#7107) #3661
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_call: | |
push: | |
branches: | |
- master | |
name: Push canister wasms | |
jobs: | |
push_canister_wasms: | |
name: Push canister wasms | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build canister wasms | |
run: ./scripts/docker-build-all-wasms.sh | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::253040722768:role/GitHubActions-PushCanisterWasms | |
aws-region: us-east-1 | |
- name: Push canister wasms to S3 | |
run: | | |
aws s3 cp --recursive wasms s3://openchat-canister-wasms/${GITHUB_SHA} | |
- name: Update latest commit Id | |
run: | | |
echo ${GITHUB_SHA} > latest | |
aws s3 mv latest s3://openchat-canister-wasms/latest |