Skip to content

Create gh-page.yml

Create gh-page.yml #1

Workflow file for this run

name: Deploy to another repo
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.17.0'
- name: Compile
env:
CI: false
run: |
yarn;
yarn build;
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: ./build
fqdn: hackathon.rebase.network
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}