Skip to content

Commit

Permalink
Update latex.yml to make release
Browse files Browse the repository at this point in the history
  • Loading branch information
htjb authored Jul 22, 2023
1 parent 1841f47 commit 70a0eab
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ jobs:
uses: xu-cheng/latex-action@v2
with:
root_file: CV.tex

- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: PDF
path: CV.pdf

- name: 'Unzip project'
uses: montudor/[email protected]
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: $
with:
tag_name: $
release_name: Release $
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: $
with:
args: unzip PDF

- name: GIT commit and push PDF
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git add CV.pdf
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
upload_url: $
asset_path: ./CV.pdf
asset_name: CV.pdf
asset_content_type: pdf

0 comments on commit 70a0eab

Please sign in to comment.