Skip to content

Commit f6e9764

Browse files
authored
Merge pull request #185 from cowprotocol/release/2.6.0
Release/2.6.0
2 parents f82324e + b4abb4c commit f6e9764

File tree

11 files changed

+473
-358
lines changed

11 files changed

+473
-358
lines changed

.github/workflows/s3Deploy.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to S3
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
# Required for authenticating with AWS IAM
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Configure AWS credentials
20+
uses: aws-actions/configure-aws-credentials@v2
21+
with:
22+
role-to-assume: arn:aws:iam::693696263829:role/token-list-github-action-role
23+
role-session-name: githubactionsession
24+
aws-region: eu-central-1
25+
26+
- name: Upload to S3
27+
run: |
28+
aws s3 cp src/public/CowSwap.json s3://files.cow.fi/tokens/CowSwap-test.json
29+
30+
- name: Invalidate CloudFront cache
31+
run: |
32+
aws cloudfront create-invalidation \
33+
--distribution-id ${{ secrets.DISTRIBUTION }} \
34+
--paths "/tokens/*"

0 commit comments

Comments
 (0)