Skip to content

Commit

Permalink
ci: latex build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsoni1010 committed Mar 17, 2023
1 parent 6cffbbc commit 954f6f3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
51 changes: 24 additions & 27 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,6 @@ jobs:
name: Resume PDF
path: public/resume/resume.pdf

# - name: Get Time
# id: time
# uses: nanzm/[email protected]
# with:
# timeZone: -7
# format: "YYYY-MM-DD"
# - name: Create Release
# id: create_release
# uses: softprops/action-gh-release@v1
# with:
# name: Resume compiled on ${{ steps.time.outputs.time }}
# tag_name: ${{ steps.time.outputs.time }}
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./resume.pdf
# asset_name: "resume.pdf"
# asset_content_type: application/pdf

- name: Install ghostscript
run: sudo apt-get update --fix-missing && sudo apt install ghostscript
- name: Change ImageMagick security policy
Expand Down Expand Up @@ -76,16 +53,36 @@ jobs:
run: |
cp resume.pdf public/resume/
cp resume.png public/resume/
rm -rf resume.pdf
rm -rf resume.png
- name: Get Time
id: time
uses: nanzm/[email protected]
with:
timeZone: -7
format: "YYYY-MM-DD"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: Resume compiled on ${{ steps.time.outputs.time }}
tag_name: ${{ steps.time.outputs.time }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./resume.pdf
asset_name: resume.pdf
asset_content_type: application/pdf

- name: Commit PNG
id: commit
run: |
git config --local user.email "action[bot]@github.com"
git config --local user.name "github-actions[bot]"
git add
git add
git add public/resume
git commit -m "[bot] updated png and pdf"
- name: Push changes
Expand Down
Binary file added public/resume/resume.pdf
Binary file not shown.
Binary file added public/resume/resume.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 954f6f3

@vercel
Copy link

@vercel vercel bot commented on 954f6f3 Mar 17, 2023

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.