Files
website/.github/workflows/build_deploy_master.yml
Hendrik Eeckhaut f4201646ca Merge branch 'dev'
# Conflicts:
#	.github/workflows/build_deploy_master.yml
#	.github/workflows/build_dev.yml
#	package-lock.json
#	public/android-chrome-192x192.png
#	public/android-chrome-512x512.png
#	public/apple-touch-icon.png
#	public/favicon-16x16.png
#	public/favicon-32x32.png
#	public/favicon.ico
#	src/components/Discord.tsx
#	src/components/Footer.tsx
#	src/components/Hero.tsx
#	src/components/Navbar.tsx
#	src/components/Team.tsx
#	src/data/Projects.json
#	src/data/Team.json
#	src/images/pse-logo.svg
#	src/images/unirep.svg
#	src/index.css
2023-07-24 11:39:43 +02:00

41 lines
878 B
YAML

name: Build & Deploy to Pages
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛒
uses: actions/checkout@v3
with:
node-version: 16.x
- name: Install and Build
run: |
npm ci
npm run prerender
- name: Deploy to gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: 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 }}