Skip to content

Commit

Permalink
Added local env in pupeeter script
Browse files Browse the repository at this point in the history
  • Loading branch information
hmziqrs committed Dec 9, 2021
1 parent f42e7b2 commit 2a4b8dc
Show file tree
Hide file tree
Showing 7 changed files with 291 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ jobs:
with:
node-version: "12.19.1"

- name: Deploy to Firebase
uses: w9jds/[email protected]
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

- name: Setup git configs
run: |
git checkout master
Expand All @@ -39,7 +32,7 @@ jobs:
- name: Run puppeteer & commit screenshots
run: |
npm run prod
npm run local
git add .
git commit -m "Automated jpg & pdf generation"
git push origin master
Expand All @@ -51,6 +44,13 @@ jobs:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.

- name: Deploy to Firebase
uses: w9jds/[email protected]
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

- name: Windows release build for github
uses: ncipollo/release-action@v1
with:
Expand Down
Binary file modified build/assets/hackerhgl-cv.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/assets/hackerhgl-cv.pdf
Binary file not shown.
Loading

0 comments on commit 2a4b8dc

Please sign in to comment.