Skip to content

Commit

Permalink
Only upload on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
absis committed Sep 18, 2023
1 parent ed49d66 commit d86792a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v3
Expand All @@ -33,6 +30,15 @@ jobs:

- run: pnpm build

deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
permissions:
id-token: write
contents: read

steps:
- name: Configure AWS credentials from Production account
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit d86792a

Please sign in to comment.