Skip to content

Commit

Permalink
refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylyp Radionov committed Jul 10, 2023
1 parent c32a9d5 commit 1c51701
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 51 deletions.
File renamed without changes.
51 changes: 0 additions & 51 deletions .github/workflows/ci.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/w3-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "build and deploy on ipfs via web3.storage"

on:
push:
branches:
- main

jobs:
w3-deploy:
runs-on: ubuntu-latest

env:
WEB3_STORAGE_TOKEN: ${{ secrets.WEB3_STORAGE_TOKEN }}

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18.x

- name: 🔧 pnpm build
uses: ./.github/actions/pnpm-build
with:
enable-corepack: true

- name: 🔥 upload to web3
uses: web3-storage/add-to-web3@v2
id: web3
with:
web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
path_to_add: "out"
- run: echo ${{ steps.web3.outputs.cid }}
- run: echo ${{ steps.web3.outputs.url }}

0 comments on commit 1c51701

Please sign in to comment.