Merge pull request #7 from tlsnotary/rustdoc #5
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: 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 | |
- name: Install and Build | |
run: | | |
npm ci | |
npm run prerender | |
- name: Deploy to gh-pages branch | |
uses: JamesIves/[email protected] | |
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 }} |