mirror of
https://github.com/tlsnotary/website.git
synced 2026-01-08 22:38:08 -05:00
website v2
This commit is contained in:
35
.github/workflows/build_deploy_master.yml
vendored
35
.github/workflows/build_deploy_master.yml
vendored
@@ -2,12 +2,11 @@ name: Build & Deploy to Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -16,23 +15,29 @@ jobs:
|
||||
- name: Checkout 🛒
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install and Build
|
||||
run: |
|
||||
npm ci
|
||||
npm run prerender
|
||||
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
|
||||
uses: ./.github/workflows/setup-node
|
||||
|
||||
- name: Setup Pages ⚙️
|
||||
uses: actions/configure-pages@v4
|
||||
with:
|
||||
static_site_generator: next
|
||||
|
||||
- name: Build with Next.js 🏗️
|
||||
run: npx next build
|
||||
|
||||
- name: Deploy to gh-pages branch
|
||||
uses: JamesIves/github-pages-deploy-action@v4.4.3
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: build
|
||||
folder: ./out
|
||||
|
||||
- name: Push to Web3.storage
|
||||
uses: web3-storage/add-to-web3@v2
|
||||
id: web3
|
||||
with:
|
||||
web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
|
||||
path_to_add: 'build'
|
||||
# - name: Push to Web3.storage
|
||||
# uses: web3-storage/add-to-web3@v2
|
||||
# id: web3
|
||||
# with:
|
||||
# web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
|
||||
# path_to_add: 'build'
|
||||
|
||||
- run: echo ${{ steps.web3.outputs.cid }}
|
||||
- run: echo ${{ steps.web3.outputs.url }}
|
||||
# - run: echo ${{ steps.web3.outputs.cid }}
|
||||
# - run: echo ${{ steps.web3.outputs.url }}
|
||||
|
||||
Reference in New Issue
Block a user