Skip to content

Commit

Permalink
Add the publish and promote artifacts steps to the publish-artifacts …
Browse files Browse the repository at this point in the history
…CI job

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Feb 27, 2024
1 parent cc3c5fb commit 5f70fff
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
# step 'if env.XXX' != ""', so we copy these to succinctly test whether
# credentials have been provided before trying to run steps that need them.
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
jobs:
detect-noop:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -211,3 +212,21 @@ jobs:
with:
name: output
path: _output/**

- name: Publish Artifacts to S3
run: make -j2 publish BRANCH_NAME=${GITHUB_REF##*/}
if: env.AWS_ACCESS_KEY_ID != ''
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1

- name: Promote Artifacts in S3
if: github.ref == 'refs/heads/main' && env.AWS_ACCESS_KEY_ID != ''
run: make -j2 promote
env:
BRANCH_NAME: main
CHANNEL: main
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1

0 comments on commit 5f70fff

Please sign in to comment.