This file contains hidden or 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: Deploy Signals Example to GH pages | |
| on: | |
| push: | |
| branches: | |
| # - main | |
| - deploy-signals-example | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20.x' | |
| cache: 'yarn' | |
| - name: Change Directory to signals-example | |
| run: cd packages/signals/signals-example | |
| - name: Installing Dependencies | |
| run: yarn install | |
| working-directory: packages/signals/signals-example | |
| - name: Building App | |
| run: yarn build | |
| working-directory: packages/signals/signals-example | |
| - name: Deploy with gh-pages | |
| run: | | |
| git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
| npx gh-pages -d build -u "github-actions-bot <[email protected]>" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| working-directory: packages/signals/signals-example |