Skip to content

larch to S3

larch to S3 #2

Workflow file for this run

name: larch to S3
on:
workflow_dispatch:
push:
branches:
- main
release:
types: [published]
jobs:
upload-larch-to-s3:
name: Upload larch to S3
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get release tag name
id: get_tag_name
run: echo "RELEASE_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
- name: Zip repository
run: |
zip -r "larch_${RELEASE_TAG}.zip" .
zip -r "larch_latest.zip" .
- name: ConfigureAWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::067782713062:role/admin-oidc
role-session-name: ${{ github.repository_owner}}
aws-region: us-east-1
- name: Upload to S3
run: |
aws s3 cp "./larch_${RELEASE_TAG}.zip" s3://impact-repo-dependancies/larch/
aws s3 cp "./larch_latest.zip" s3://impact-repo-dependancies/larch/