Skip to content

Commit

Permalink
use different upload action
Browse files Browse the repository at this point in the history
  • Loading branch information
martinschaef authored Apr 26, 2020
1 parent 84368ce commit 3cec267
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/compile_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,15 @@ jobs:
with:
root_file: document.tex
args: "-xelatex -file-line-error -interaction=nonstopmode"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload to relase
uses: actions/upload-release-asset@v1
- uses: meeDamian/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: upload-release-asset
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./document.pdf
asset_name: cv-schaef.pdf
asset_content_type: application/pdf
token: ${{ secrets.GITHUB_TOKEN }}
tag: "resume"
name: CV Schaef
body: >
Auto release by github actions
allow_override: true
files: >
document.pdf

0 comments on commit 3cec267

Please sign in to comment.