1919 domain : ' app.aave.com' ,
2020 artifact : ' out' ,
2121 build_path : ' out'
22- },
23- {
24- name : ' Staging' ,
25- domain : ' staging.aave.com' ,
26- artifact : ' out_staging' ,
27- build_path : ' out_staging'
2822 }
2923 ]
3024 environment :
3933 name : ${{ matrix.environment.artifact }}
4034 path : ${{ matrix.environment.build_path }}
4135
42- # Only for staging environment
43- - name : pinata
44- id : pinata
45- if : matrix.environment.name == 'Staging'
46- uses : aave/pinata-action@35662944e92cf082457973f10aa42e48df179b47
47- with :
48- PINATA_API_KEY : ' ${{ secrets.PINATA_API_KEY }}'
49- PINATA_SECRET_KEY : ' ${{ secrets.PINATA_SECRET_KEY }}'
50- PIN_ALIAS : ' app-aave-staging'
51- BUILD_LOCATION : ' ./out_staging'
52- CID_VERSION : 1
53-
5436 - name : Pin to primary IPFS server
5537 id : ipfs-primary
5638 uses : ./.github/actions/ipfs-pin
@@ -60,25 +42,22 @@ jobs:
6042 IPFS_SERVER : ' ${{ secrets.IPFS_PRIMARY_SERVER }}'
6143 IPFS_SERVER_KEY : ' ${{ secrets.IPFS_PRIMARY_SERVER_KEY }}'
6244 BUILD_PATH : ${{ matrix.environment.build_path }}
63- PINATA_HASH : ${{ matrix.environment.name == 'Production' && inputs.PINATA_HASH || steps.pinata.outputs.hash }}
45+ PINATA_HASH : ${{ inputs.PINATA_HASH }}
6446
6547 - uses : aave/cloudflare-update-action@0f2084730a068fab162853c4e7cc40537233d34a
6648 with :
6749 CF_API_TOKEN : ' ${{ secrets.CF_API_TOKEN }}'
6850 CF_ZONE_ID : ' ${{ secrets.CF_ZONE_ID }}'
69- HASH : ${{ matrix.environment.name == 'Production' && inputs.PINATA_HASH || steps.pinata.outputs.hash }}
51+ HASH : ${{ inputs.PINATA_HASH }}
7052 CF_DEPLOYMENT_DOMAIN : ${{ matrix.environment.domain }}
7153
72- # Only for production environment
7354 - name : prepare release
74- if : matrix.environment.name == 'Production'
7555 run : |
7656 cp .github/release-template.md ./release-notes.md
7757 sed -i 's|<ipfs-hash>|${{ inputs.PINATA_HASH }}|g' ./release-notes.md
7858 echo "TAG=release-$(date '+%Y-%m-%d_%H-%M')" >> ${GITHUB_ENV}
7959
8060 - name : Create GH release
81- if : matrix.environment.name == 'Production'
8261 uses : ncipollo/release-action@4c75f0f2e4ae5f3c807cf0904605408e319dcaac # v1.10.0
8362 with :
8463 name : Production release
0 commit comments