Merge pull request #2 from hyphacoop/table-ui #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
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 22 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
# Step 3: Install dependencies and generate static files | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate site files | |
run: node ./ | |
# Step 4: Deploy to Distributed Press | |
- name: Publish to Distributed Press | |
uses: hyphacoop/[email protected] | |
with: | |
publish_dir: public | |
dp_url: https://api.distributed.press | |
refresh_token: ${{ secrets.DISTRIBUTED_PRESS_TOKEN }} | |
site_url: explore.distributed.press | |
deploy_http: true | |
deploy_hyper: true | |
deploy_ipfs: true |