test3 #30
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/CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "${{ github.actor }}" | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: npm install --force | |
- name: Build Angular App | |
run: npm run build | |
- name: Deploy to GitHub Pages | |
run: | | |
ls -l dist/your-angular-app | |
npx angular-cli-ghpages --dir=dist/your-angular-app --no-silent | |
env: | |
CI: true | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |