Update angular.json #22
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: Deploy to gh-pages | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
# - name: Run tests | |
# run: npm run ng -- test --no-watch --no-progress --browsers=ChromeHeadless | |
- name: Prepare and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
TIMESTAMP=$(date +"%d-%B-%Y %I:%M:%S %p") | |
npm run ng -- deploy --base-href=https://dudushy.github.io/qoder/ --repo=https://github.com/dudushy/qoder.git --name="github-actions[bot]" --email="github-actions[bot]@users.noreply.github.com" --message="Deployed by GitHub Actions [\`${GITHUB_REF#refs/heads/}\`] @ ${TIMESTAMP}" |