Skip to content

Commit

Permalink
fix: reorder lint and fix commit and push
Browse files Browse the repository at this point in the history
  • Loading branch information
ksw2000 authored Nov 25, 2024
1 parent 810c618 commit 579c3e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 20
- name: lint
run: npm run lint
- name: build
run: |
npm ci
npx ng add angular-cli-ghpages --skip-confirmation
npx ng build --base-href=/${{ github.event.repository.name }}/
- name: lint
run: npm run lint
- name: commit and push
run: |
cd dist/dev-fest-2024/browser
git init
git config user.name "build-ci"
git config user.email "[email protected]"
git remote add secure-origin https://${{ secrets.GENERAL_CI }}@github.com/ksw2000/${{ github.event.repository.name }}
git remote add secure-origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gdg-twhk/${{ github.event.repository.name }}
git checkout -b gh-pages
git add .
git commit -m "gitpage by CI"
Expand All @@ -37,18 +37,18 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: lint
run: npm run lint
- name: build
run: |
npm ci
npx ng add angular-cli-ghpages --skip-confirmation
npx ng build --base-href=/2024/
- name: lint
run: npm run lint
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
entryPoint: "./"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: "${{ secrets.PROJECT_ID }}"
channelId: live
channelId: live

0 comments on commit 579c3e2

Please sign in to comment.