Skip to content

[style] update twitter icon, improve styles #8

[style] update twitter icon, improve styles

[style] update twitter icon, improve styles #8

Workflow file for this run

name: Build and Deploy IPFS
on: [pull_request]
jobs:
build-and-deploy-ipfs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
persist-credentials: false
- name: Cache
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install
run: npm install
- name: Build IPFS
env:
NODE_ENV: production
PUBLIC_URL: ./
run: npm run build
- name: Deploy IPFS
uses: aquiladev/ipfs-action@v0.1.3
id: ipfs
with:
path: build
service: pinata
pinataKey: ${{ secrets.PINATA_KEY }}
pinataSecret: ${{ secrets.PINATA_SECRET_API_KEY }}
- name: Publish IPFS hash
uses: thollander/actions-comment-pull-request@main
with:
message: "[IPFS](https://ipfs.io/ipfs/${{ steps.ipfs.outputs.hash }}) 🌎"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}