Created
September 24, 2021 00:15
-
-
Save rodrigokamada/f0ddbf32fdb4669c61cb814e9acd9785 to your computer and use it in GitHub Desktop.
Angular Github Actions - Step 7
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: GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm run test:headless | |
- name: Build | |
run: npm run build:prod | |
- name: Deploy | |
if: success() | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: dist/angular-github-actions | |
enable_jekyll: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment