Skip to content

Commit

Permalink
deploy.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestarrdev committed Aug 16, 2024
1 parent f423194 commit 7ac84f8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Deploy
on:
push:
branches:
- main
- ipfs
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 18.19.0

- name: Checkout Code
uses: actions/[email protected]

- name: Install and Build
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 }}

- name: IPFS (Pinata)
uses: aquiladev/ipfs-action@master
with:
path: ./build
service: pinata
pinataKey: ${{ secrets.PINATA_KEY }}
pinataSecret: ${{ secrets.PINATA_SECRET }}

0 comments on commit 7ac84f8

Please sign in to comment.