Compare commits

...

2 Commits

Author SHA1 Message Date
Ben Banfield-Zanin
a890b9a723 Debug 2024-04-15 16:04:02 +01:00
Ben Banfield-Zanin
0157a59647 Test GHA -> S3 for MSI builds 2024-04-15 15:52:18 +01:00

33
.github/workflows/msi_push.yaml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Push MSI to S3
on:
pull_request: {}
env:
BUCKET_NAME : "element-desktop-msi.onprem.element.io"
AWS_REGION : "eu-central-1"
permissions:
id-token: write
contents: read
jobs:
S3PackageUpload:
runs-on: ubuntu-latest
steps:
- name: Checkout actions-oidc-debugger
uses: actions/checkout@v3
with:
repository: github/actions-oidc-debugger
ref: main
path: ./.github/actions/actions-oidc-debugger
- name: Debug OIDC Claims
uses: ./.github/actions/actions-oidc-debugger
with:
audience: 'sts.amazonaws.com'
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::264135176173:role/Push-ElementDesktop-MSI
role-session-name: githubaction-run-${{ github.run_id }}
aws-region: ${{ env.AWS_REGION }}
- name: Copy file to S3
run: |
echo ${{ github.run_id }} > test
aws s3 cp ./test s3://${{ env.BUCKET_NAME }}/