Skip to content

Commit

Permalink
Fix build pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
vanduc1102 committed Aug 7, 2022
1 parent 3e630bd commit 4682591
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
on:
push:
tags:
- '*'
push
# push:
# tags:
# - '*'

name: Upload Release Asset

Expand All @@ -20,17 +21,17 @@ jobs:
run: sed -i '1d' RESUME.md

- name: Build PDF from Markdown
uses: BaileyJM02/markdown-to-pdf@v1
uses: BaileyJM02/markdown-to-pdf@v1.2.0
with:
input_dir: .
input_path: RESUME.md
output_dir: out

- name: Rename pdf
run: cp out/RESUME.pdf ./$RESUME_FILE_NAME.pdf

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -41,7 +42,7 @@ jobs:

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 4682591

Please sign in to comment.