Skip to content

Merge pull request #456 from SetiZ/dependabot/npm_and_yarn/prettier-3… #280

Merge pull request #456 from SetiZ/dependabot/npm_and_yarn/prettier-3…

Merge pull request #456 from SetiZ/dependabot/npm_and_yarn/prettier-3… #280

Workflow file for this run

name: CI
on:
push:
branches:
- master
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: GitHub Config
run: |
git config --global user.email "funkysetiz@gmail.com"
git config --global user.name "SetiZ"
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn
# - name: Deploy
# run: yarn deploy:ci
# - uses: actions/checkout@v2
- name: Gatsby Publish
uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
deploy-branch: gh-pages
# gatsby-args: --prefix-paths
- name: Webpage to PDF
uses: SetiZ/web_to_pdf_action@master
with:
webPageURL: https://setiz.github.io/resume/
outputFile: resume.pdf
usePuppeteer: true
pdfOptions: '{"format": "A4", "margin": {"left": "2cm", "top": "4cm", "right": "1cm", "bottom": "3.5cm"}}'
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generate PDF
branch: gh-pages
file_pattern: resume.pdf