Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dudushy committed Oct 5, 2024
1 parent 667c10b commit ee91ce3
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Deploy to GitHub Pages via angular-cli-ghpages

on: [push]
on:
push:
branches:
- main

jobs:
build-and-deploy:
Expand All @@ -27,15 +30,15 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Build and Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run deploy

# - name: Build Angular Project
# run: npm run build -- --configuration=production

# - name: Deploy to GitHub Pages
# - name: Build and Deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: npx angular-cli-ghpages --dir=dist/qoder --message="Deployed by GitHub Actions"
# run: npm run deploy

- name: Build Angular Project
run: npm run build -- --configuration=production

- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx angular-cli-ghpages --dir=dist/qoder/browser --message="Deployed by GitHub Actions"

0 comments on commit ee91ce3

Please sign in to comment.