Skip to content

Commit 5cae210

Browse files
fix: deploy to s3 release trigger (cowprotocol#785)
1 parent 8284aa4 commit 5cae210

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/deploy-to-s3.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Deploy to S3
22
# Workflow copied from https://github.com/cowprotocol/token-lists/blob/main/.github/workflows/s3Deploy.yml
33

44
on:
5-
release:
6-
types: [created]
5+
workflow_call:
76
# Allow manual trigger
87
workflow_dispatch:
98

.github/workflows/release-please.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ permissions:
1616
jobs:
1717
release-please:
1818
runs-on: ubuntu-latest
19+
outputs:
20+
releases_created: ${{ steps.release.outputs.releases_created }}
1921
steps:
2022
# 1️⃣ Checkout the repo
2123
- uses: actions/checkout@v4
@@ -56,3 +58,12 @@ jobs:
5658
- name: Publish changed packages
5759
if: steps.release.outputs.releases_created == 'true'
5860
run: pnpm publish -r --filter="./packages/**" --tag latest --no-git-checks
61+
62+
deploy-to-s3:
63+
needs: release-please
64+
if: needs.release-please.result == 'success' && needs.release-please.outputs.releases_created == 'true'
65+
uses: ./.github/workflows/deploy-to-s3.yml
66+
permissions:
67+
id-token: write
68+
contents: read
69+
secrets: inherit

0 commit comments

Comments
 (0)