Skip to content

Commit

Permalink
Create gh-page.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xrdavies authored Dec 6, 2023
1 parent 3071bdf commit ab64979
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 }}

0 comments on commit ab64979

Please sign in to comment.