Skip to content

Instantly share code, notes, and snippets.

@rodrigokamada
Created September 24, 2021 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodrigokamada/f0ddbf32fdb4669c61cb814e9acd9785 to your computer and use it in GitHub Desktop.
Save rodrigokamada/f0ddbf32fdb4669c61cb814e9acd9785 to your computer and use it in GitHub Desktop.
Angular Github Actions - Step 7
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