Skip to content

Commit

Permalink
Merge pull request #95 from airswap/ipfs-deploy
Browse files Browse the repository at this point in the history
deploy ipfs outside of pages environment
  • Loading branch information
dmosites authored Oct 5, 2023
2 parents 31f1d2d + 1b12b4b commit 68fcce2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ipfs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: IPFS Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 16.15.1

- name: Checkout 🛎️
uses: actions/checkout@v2.3.1

- name: Install and Build 🔧
env:
VITE_INFURA_API_KEY: ${{ vars.VITE_INFURA_API_KEY }}
VITE_WALLETCONNECT_ID: ${{ vars.VITE_WALLETCONNECT_ID }}
VITE_ACTIVATE_POINTS_LEAVES_URL: ${{ vars.VITE_ACTIVATE_POINTS_LEAVES_URL }}
VITE_ENABLE_ACTIVATE_MIGRATION: ${{ vars.VITE_ENABLE_ACTIVATE_MIGRATION }}
run: |
yarn
yarn build
- name: IPFS Deploy 🚀
uses: aquiladev/ipfs-action@master
with:
path: ./build
service: infura
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
13 changes: 2 additions & 11 deletions .github/workflows/deploy.yml → .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Simple workflow for deploying static content to GitHub Pages
name: Build and Deploy
name: Pages Deploy

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -52,12 +51,4 @@ jobs:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

- name: Deploy to IPFS
uses: aquiladev/ipfs-action@master
with:
path: "dist"
service: infura
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
uses: actions/deploy-pages@v2

0 comments on commit 68fcce2

Please sign in to comment.