2022-04-11 11:42:22 +00:00
|
|
|
---
|
|
|
|
name: Deploy affected projects to IPFS
|
|
|
|
|
|
|
|
'on':
|
|
|
|
# Triggers the workflow on push to main branch
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch: null
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
master:
|
|
|
|
name: Publish NX Affected
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Use Node.js 16
|
|
|
|
id: Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 16.14.0
|
2022-04-12 13:41:01 +00:00
|
|
|
- name: Install root dependencies
|
|
|
|
run: yarn install
|
2022-04-11 11:42:22 +00:00
|
|
|
- name: Run deploy for affected sites
|
2022-04-12 10:13:20 +00:00
|
|
|
env:
|
|
|
|
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
|
2022-04-11 17:55:59 +00:00
|
|
|
run: ./tools/ipfs-deploy.js
|