Fix all tests + handling of dotfiles, notfound, and nojekyll for Comm… #97
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: Build and test | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Prepare | |
run: | | |
cd src | |
npm install | |
npm run build | |
npm run test | |
cd dist | |
npm link | |
cd .. | |
cd .. | |
npm install -g @angular/cli | |
ng new your-angular-project --defaults | |
cd your-angular-project | |
npm link angular-cli-ghpages | |
ng add angular-cli-ghpages | |
- name: Deploy | |
if: github.ref == 'refs/heads/master' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd your-angular-project | |
ng deploy --name="The Buildbot" --email="[email protected]" --cname=angular-cli-ghpages.angular.schule |