Semi implement allheim (#42) #44
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
name: Deploy to Remote Repo | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'alpha' | |
jobs: | |
deploy: | |
name: Deploy ${{ matrix.project }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16] | |
project: [anzelmo, bapta, ggsoccer, web-template] | |
steps: | |
# pnpm setup following https://pnpm.io/continuous-integration#github-actions | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Build Monorepo | |
run: pnpm build | |
- name: Prepare for GitHub Pages | |
run: | | |
echo -e "${{ matrix.project }}.futi.no" >> apps/${{ matrix.project }}/build/CNAME | |
touch apps/${{ matrix.project }}/build/.nojekyll | |
- name: Deploy to https://github.com/Futino/${{ matrix.project }} gh-pages Branch | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
token: ${{ secrets.TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: apps/${{ matrix.project }}/build # The folder the action should deploy. | |
repository-name: Futino/${{ matrix.project }} # The repository the action should deploy to. | |
target-folder: / | |
clean: true |