mirror of
https://github.com/acid-info/Kurate.git
synced 2025-02-21 03:58:16 +00:00
45 lines
931 B
YAML
45 lines
931 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js 18
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7
|
|
|
|
- name: Install npm deps
|
|
working-directory: packages/ui
|
|
run: pnpm i --frozen-lockfile
|
|
|
|
- name: Build
|
|
working-directory: packages/ui
|
|
run: pnpm run build
|
|
env:
|
|
NODE_OPTIONS: --max-old-space-size=4096
|
|
|
|
- uses: aquiladev/ipfs-action@v0.3.1
|
|
with:
|
|
path: ./packages/ui/build
|
|
timeout: 300000
|
|
service: ipfs
|
|
pin: true
|
|
host: ipfs-api.apyos.dev
|
|
protocol: https
|
|
port: 443
|
|
headers: '{ "Authorization": "${{ secrets.IPFS_AUTHORIZATION }}" }'
|
|
key: kurate-ui
|