Skip to content

chore(semaphore-identiy): add verif json file (#126) #6

chore(semaphore-identiy): add verif json file (#126)

chore(semaphore-identiy): add verif json file (#126) #6

name: Upload Artifacts
on:
push:
branches:
- main
paths:
- 'packages/**'
- '!packages/artifacts/**'
- '!packages/cli/**'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
upload-artifacts:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Wait for Release to succeed
if: github.event_name == 'push'
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'release'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::490752553772:role/snark-artifacts-assume_role-slc
role-duration-seconds: 900
aws-region: us-west-2
- name: Install package
run: |
sudo apt install git-restore-mtime
- name: Upload artifacts to S3 bucket
run: |
.github/scripts/upload-artifacts.sh
- name: Update CloudFront
run: |
.github/scripts/update-cloudfront.sh