diff --git a/.github/workflows/gh-page.yml b/.github/workflows/gh-page.yml new file mode 100644 index 0000000..3052097 --- /dev/null +++ b/.github/workflows/gh-page.yml @@ -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 }}