From 0cf7d515926a349252858857894e031239b1662f Mon Sep 17 00:00:00 2001 From: dhrubabasu <7675102+dhrubabasu@users.noreply.github.com> Date: Mon, 27 Sep 2021 17:10:50 -0400 Subject: [PATCH 1/2] start working on deploy script --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..ba89d4db --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: CD + +on: + push: + branches: + - master + - ipfs-deploy + +env: + node_version: 14 + +defaults: + run: + working-directory: dapp + +jobs: + Release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ env.node_version }} + cache: 'npm' + - run: npm install node-gyp + - run: npm install -g grunt-cli + - run: npm install + - run: grunt + - run: npx ipfs-deploy@8.0.1 ./build -p infura -d cloudflare -O -C + env: + IPFS_DEPLOY_PINATA__API_KEY: ${{ secrets.PINATA_KEY }} + IPFS_DEPLOY_PINATA__SECRET_API_KEY: ${{ secrets.PINATA_SECRET }} + IPFS_DEPLOY_CLOUDFLARE__API_TOKEN: ${{ secrets.CF_API_TOKEN }} + IPFS_DEPLOY_CLOUDFLARE__ZONE: ${{ secrets.CF_ZONE }} + IPFS_DEPLOY_CLOUDFLARE__RECORD: ${{ secrets.CF_RECORD }} \ No newline at end of file From b72aba49bc91e8462cceb810208cf9a95725b449 Mon Sep 17 00:00:00 2001 From: dhrubabasu <7675102+dhrubabasu@users.noreply.github.com> Date: Mon, 27 Sep 2021 17:12:39 -0400 Subject: [PATCH 2/2] add install --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ba89d4db..2ec80f3b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,7 @@ jobs: with: node-version: ${{ env.node_version }} cache: 'npm' + - run: apt install -y libusb-1.0-0-dev - run: npm install node-gyp - run: npm install -g grunt-cli - run: npm install