-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d5f830
commit bba5f83
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
# remove add_build_workflow after we've tested that this works | ||
branches: [ master, add_build_workflow ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '10' | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Run Build | ||
run: yarn run build | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '10' | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Configure AWS Credentials using OIDC | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
# TODO: update ACCOUNT and UPLOAD_ROLE | ||
role-to-assume: arn:aws:iam::<ACCOUNT>:role/<UPLOAD_ROLE> | ||
role-session-name: github-action-account-link-extension-publish | ||
aws-region: us-west-1 | ||
|
||
- name: Run Deploy | ||
run: sh tools/cdn.sh |