Skip to content

Commit

Permalink
chore(release): upload binary to s3 (#54)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 committed Sep 13, 2024
1 parent 8bb86b6 commit 24eff7e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@ on:
tags:
- "v*.*.*"


permissions:
contents: write
id-token: write
packages: read

jobs:
release:
runs-on: macos-13
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: "arn:aws:iam::${{ secrets.AWS_IAM_ACCOUNT_ID }}:role/github-action-oomol-lab-ovm"
role-session-name: "github-action-oomol-lab-ovm"
aws-region: us-east-1

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

Expand Down Expand Up @@ -48,3 +61,13 @@ jobs:
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get Tag Name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Upload To S3
run: |
aws s3 cp \
./out/ \
s3://oomol-static/ovm-resources/ovm/$RELEASE_VERSION \
--recursive --exclude "*" --include "ovm*"

0 comments on commit 24eff7e

Please sign in to comment.