From cdddf29387a5657b54bacb26a7d1c262ae6597ce Mon Sep 17 00:00:00 2001 From: tree Date: Wed, 21 Feb 2024 12:23:23 +0100 Subject: [PATCH] ipfs deploy #5 --- .github/workflows/ipfs-deploy.yml | 29 +++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/ipfs-deploy.yml diff --git a/.github/workflows/ipfs-deploy.yml b/.github/workflows/ipfs-deploy.yml new file mode 100644 index 0000000..eec67de --- /dev/null +++ b/.github/workflows/ipfs-deploy.yml @@ -0,0 +1,29 @@ +name: Deploy to IPFS + +on: + # Trigger the workflow every time you push to the `main` branch + # Using a different branch name? Replace `main` with your branch’s name + push: + branches: [ beta ] + +# Allow this job to clone the repo and create a page deployment +permissions: + contents: read + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + - uses: denoland/setup-deno@v1 + - run: npm install + - run: npm run build + - run: npm run cleanup-flags + - uses: aquiladev/ipfs-action@master + with: + path: ./dist + service: pinata + pinataKey: ${{ secrets.PINATA_KEY }} + pinataSecret: ${{ secrets.PINATA_SECRET }} \ No newline at end of file diff --git a/README.md b/README.md index 33b9e25..8df3599 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ | --- | --- | --- | | Production | [web3privacy.info](https://web3privacy.info) | GitHub Pages | | Production (mirror) | [w3pn-web.vercel.app](https://w3pn-web.vercel.app) | Vercel | +| Production (IPFS) | TBA | IPFS | | Beta (dev) | [beta.web3privacy.info](https://beta.web3privacy.info) | Vercel | ## Used technologies