Skip to content

Commit

Permalink
Deploy to netlify using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
drik98 committed Jul 31, 2024
1 parent 26e9e86 commit ce0c2c8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/cv-generator.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build LaTeX documents
name: Build
on: [push]
jobs:
build_latex:
Expand All @@ -20,8 +20,30 @@ jobs:
continue_on_error: "true"
env:
TEXINPUTS: ".:./cv//:"
- name: Upload PDF file
- name: Upload PDF files
uses: actions/upload-artifact@v4
with:
name: cvs
path: cv_hendrik_schmitz_*.pdf
path: cv_hendrik_schmitz_*.pdf
- name: Copy generated pdf files to public directory
run: |
mkdir -p public
cp -R *.pdf public/
- name: Install dependencies
run: npm install
- name: Build Next.js app
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './out'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
Binary file removed public/cv_hendrik_schmitz_de.pdf
Binary file not shown.
Binary file removed public/cv_hendrik_schmitz_en.pdf
Binary file not shown.

1 comment on commit ce0c2c8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.