ci: Update CI/CD pipeline #121
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 GitHub Pages | |
on: | |
- push | |
jobs: | |
deploy: | |
name: Angular CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node 16 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: pnpm | |
- name: Install | |
run: corepack pnpm install | |
- name: Build | |
run: corepack pnpm build | |
- name: Deploy to Pages | |
if: github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: dist/clashsoft-apps/ | |
cname: app.clashsoft.de |