Skip to content

fix(ci): deploy build directory instead of public #4

fix(ci): deploy build directory instead of public

fix(ci): deploy build directory instead of public #4

name: CI
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- uses: actions/checkout@v3
# Step 2: Set up Node.js
- name: Set up Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
# Step 3: Install dependencies and build the site
- name: Install dependencies
run: npm ci
- name: Build the site
run: npm run build
# Step 4: Deploy to Distributed Press
- name: Publish to Distributed Press
uses: hyphacoop/[email protected]
with:
publish_dir: build
dp_url: https://api.distributed.press
refresh_token: ${{ secrets.DISTRIBUTED_PRESS_TOKEN }}
site_url: p2plabs.xyz
deploy_http: true
deploy_hyper: true
deploy_ipfs: true