https://github.com/keycloakify/keycloakify-starter/issues/27 #20
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy_on_gh_pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
- uses: bahmutov/npm-install@v1 | |
- run: yarn build | |
- run: echo $(node -e 'console.log(require("url").parse(require("./package.json").homepage).host)') > dist/CNAME | |
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npx -y -p [email protected] gh-pages -d dist -u "github-actions-bot <[email protected]>" |