File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
44on :
5- release :
6- types : [created]
5+ workflow_call :
76 # Allow manual trigger
87 workflow_dispatch :
98
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ permissions:
1616jobs :
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
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
You can’t perform that action at this time.
0 commit comments