Update gitpage.yaml #17
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: CI | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
gitpage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: build | |
run: | | |
npm ci | |
npx ng add angular-cli-ghpages --skip-confirmation | |
npx ng build --base-href=/${{ github.event.repository.name }}/ | |
- name: lint | |
run: npm run lint | |
- name: commit and push | |
run: | | |
cd dist/dev-fest-2024/browser | |
git init | |
git config user.name "build-ci" | |
git config user.email "[email protected]" | |
git remote add secure-origin https://${{ secrets.GENERAL_CI }}@github.com/ksw2000/${{ github.event.repository.name }} | |
git checkout -b gh-pages | |
git add . | |
git commit -m "gitpage by CI" | |
git push --force secure-origin gh-pages |