Open kathodler opened 2 years ago
So for Fleek you can use this Github Action which will print out the ipfs deploy url:
on: [push]
jobs:
test-deploy:
runs-on: ubuntu-latest
name: A job to test the action-deploy action by deploying a test site
steps:
- uses: actions/checkout@v2
- name: Deploy test site
id: deploy
uses: fleekhq/action-deploy@v1
with:
apiKey: ${{ secrets.FLEEK_API_KEY }}
- name: Get the output url
run: echo "Deploy url is ${{ steps.deploy.outputs.deployUrl }}"
Pinata
on: [push]
jobs:
test-deploy:
runs-on: ubuntu-latest
name: A job to test the action-deploy action by deploying a test site
steps:
- uses: actions/checkout@v2
- name: Deploy test site
id: deploy
uses: anantaramdas/ipfs-pinata-deploy-action@v1.6.4
with:
pin-name: ${{ github.sha }}
path: "./ui/app/dist"
pinata-api-key: ${{ secrets.PINATA_API_KEY }}
pinata-secret-api-key: ${{ secrets.PINATA_SECRET_KEY }}
verbose: true
remove-old: true
- name: Get the output cid
run: echo "Deploy CID is ${{ steps.deploy.outputs.hash }}"
So the rules should be:
./out
, ./build
, etc...) ipfs add -Qr --only-hash ./build
must yield the same CID as the ipfs CID provided
Ok so the best way we can ensure verifiability of frontend code is to make it so you have to deploy your build folder to ipfs and provide an ipfs CID of your code which we will point to.