Skip to content

Commit

Permalink
Merge pull request #34 from gnosischain/dev
Browse files Browse the repository at this point in the history
CI: improve workflows, replace fetch-depth with fetch-tags where needed
  • Loading branch information
giacomognosis authored May 19, 2024
2 parents 5751549 + 9d78aa0 commit 1ccadcb
Show file tree
Hide file tree
Showing 11 changed files with 107,951 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dev_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/cache@v2
with:
Expand All @@ -42,7 +40,7 @@ jobs:
pip install awscli --upgrade --user
- name: Build App
run: yarn build
run: yarn update-deposits && yarn build

- name: Configure AWS Development credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -58,10 +56,12 @@ jobs:
run: |
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/dev --exclude "*.html" --cache-control max-age=0,no-cache,no-store,public
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/dev --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html
aws s3 sync data/ s3://${{ secrets.DEV_BUCKET_NAME }}/dev
# Script to deploy to staging environment
- name: 'Deploy to S3: Staging'
if: github.ref == 'refs/heads/main'
run: |
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/main --exclude "*.html" --cache-control max-age=0,no-cache,no-store,public
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/main --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/main --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html
aws s3 sync data/ s3://${{ secrets.DEV_BUCKET_NAME }}/main
5 changes: 3 additions & 2 deletions .github/workflows/prod_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
fetch-tags: true

- name: Tag checkout
run:
Expand All @@ -52,7 +52,7 @@ jobs:
pip install awscli --upgrade --user
- name: Build App for release
run: yarn build
run: yarn update-deposits && yarn build

- name: Configure AWS Production credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -67,6 +67,7 @@ jobs:
aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*.html" --exclude "sitemap.xml" --cache-control max-age=86400,public
aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html
aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*" --include "sitemap.xml" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/xml
aws s3 sync data/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete
notify:
uses: ./.github/workflows/slack_release_notification.yml
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Create Github Release
uses: actions/github-script@v6
with:
Expand Down
106,545 changes: 106,543 additions & 2 deletions data/100/deposits.json

Large diffs are not rendered by default.

25 changes: 23 additions & 2 deletions data/10200/deposits.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastBlock": 5862303,
"lastBlock": 9851116,
"deposits": [
"0x99481d9e84d5b5e37f35a7c198d36faba52ec5e1d0c967348c4ed47435bdb603ef4dfde7c61815c50f3bc8a900a048fd",
"0x95e4c6bd9a47c0b7fbe837fb13b10603d8c6b8d9f2c3ff9fd952796f28c5020d12b99e79521331d7a8144356de37320b",
Expand All @@ -21,6 +21,27 @@
"0x98ab1c26aac1304336b8f9f8984676ef52e1ef2f330fa7accea44000958d89fd3ca8640b5f6842abb615eb39a426622b",
"0xb1c6b257e77628b98454401d5e23323defd97c65d2e3916dfc8d1b59aebc0bde3d50d193fc6c58ab532c91ca94218eb8",
"0xb0ea6e43280168c055a02bcc43a8184f65087f7f7f25f7e643e050b391d0f386364f13ea7a21a149039dc12c222d1cfb",
"0xa09f9853afa577a773552fc4da231fbfcb26f4c0b26a1bfc6094e4dc0d390380d8cad1bbbb188182f530f52fa3c66db8"
"0xa09f9853afa577a773552fc4da231fbfcb26f4c0b26a1bfc6094e4dc0d390380d8cad1bbbb188182f530f52fa3c66db8",
"0xad764bb927d787fd10372dd33a0cd3fae0f90cffb15bfc6d30750c1834105f7f15bc59aa9af2504d421d4e1b02c52ad7",
"0x91a509b77a55ccb399d4b8dd2ede5519cf1348785ab71005ec776adee011f5b7d736684d7ef11a0beb035db9de3cdbe5",
"0xb8da1c18f697a4bb30e7f92eaaca38c8dc5aad87b728020a837e06c88aaf334c6010d05537df4f073dd559674b41bdd9",
"0xa89ee00269eb0b842105eaaf2baab55c578f7950fa691b9e71b370b5918a38c8741d0aea7e9abd6a883d8cd0d91eb624",
"0xb54f4fb0580da0bffe31c77c47437b601829864cae9632c510a737142575b031e6ece7c1f759c2e1ddc5cef588468ca8",
"0xb54f4fb0580da0bffe31c77c47437b601829864cae9632c510a737142575b031e6ece7c1f759c2e1ddc5cef588468ca8",
"0xb54f4fb0580da0bffe31c77c47437b601829864cae9632c510a737142575b031e6ece7c1f759c2e1ddc5cef588468ca8",
"0xb54f4fb0580da0bffe31c77c47437b601829864cae9632c510a737142575b031e6ece7c1f759c2e1ddc5cef588468ca8",
"0x91abcdff86235048934af47ee83abc575d587230af77423287a8643a97c2a4eb9d9bf54b81527254c260eee83f8486db",
"0xb54f4fb0580da0bffe31c77c47437b601829864cae9632c510a737142575b031e6ece7c1f759c2e1ddc5cef588468ca8",
"0x8ed53ecb0639744e88544b1723445ba21fe5312f593ae11dc33daed38b79bfde5edb2a2327ee05c44a9294ed8ba193db",
"0x8ed53ecb0639744e88544b1723445ba21fe5312f593ae11dc33daed38b79bfde5edb2a2327ee05c44a9294ed8ba193db",
"0x90b92433a9f1446c754cd80de0c806aa34a6d0f87c04fe19af2e650ebee7fd9b8e177359e06baa3718ffafb44445e221",
"0x8ed53ecb0639744e88544b1723445ba21fe5312f593ae11dc33daed38b79bfde5edb2a2327ee05c44a9294ed8ba193db",
"0x90b92433a9f1446c754cd80de0c806aa34a6d0f87c04fe19af2e650ebee7fd9b8e177359e06baa3718ffafb44445e221",
"0x8ed53ecb0639744e88544b1723445ba21fe5312f593ae11dc33daed38b79bfde5edb2a2327ee05c44a9294ed8ba193db",
"0x8f8eea2375dbc4356143a9d68b7468c81203f972ec87e92841f6acfa87f1171fd93b539fe2407f2ea4bdf0ac2668c4ad",
"0x94711821738eb084489a3ee4b82ca0fa2c369399c4603aa479e81b6344e6cccfeaad127ad674989b2e6cc0dbf4cfc594",
"0xae8d8e0478de4e33d8f25d0644374d543ece7e771d19d8ccd24a186547cc6c608217a6f9bbc90396717e12ec48a3a353",
"0x96f81c1fdc51d9b30115f23552f5768ed4aefe27979789f2e3582bfdb8d6d86f047070be148764563beda58b7975b9db",
"0x8c3d640deb2d1f2e98f948505508ce413c2b19d616f177943837e65975ce81607af4437d6b38ba76b10fdb727302ff6f"
]
}
Loading

0 comments on commit 1ccadcb

Please sign in to comment.