Upload Assets #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Assets | |
on: | |
release: | |
types: [ published ] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
upload_assets: | |
name: Create/Upload assets | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git | |
uses: actions/checkout@v2 | |
- name: Get beamertheme-pure-minimalistic-demo.pdf | |
run: wget https://github.com/kai-tub/latex-beamer-pure-minimalistic/wiki/beamertheme-pure-minimalistic-demo.pdf -O beamertheme-pure-minimalistic-demo.pdf | |
- name: Get release | |
id: release | |
uses: bruceadams/[email protected] | |
- name: Create archives | |
run: | | |
mkdir -p beamertheme-pure-minimalistic | |
cp -r {*.sty,beamertheme-pure-minimalistic-demo.tex,beamertheme-pure-minimalistic-demo.pdf,README.md,LICENSE,demo_bib.bib,logos} beamertheme-pure-minimalistic | |
zip -r beamertheme-pure-minimalistic.zip beamertheme-pure-minimalistic | |
tar cfvz beamertheme-pure-minimalistic.tar.gz beamertheme-pure-minimalistic | |
- name: Upload zip asset | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.release.outputs.upload_url }} | |
asset_path: ./beamertheme-pure-minimalistic.zip | |
asset_name: beamertheme-pure-minimalistic.zip | |
asset_content_type: application/zip | |
- name: Upload tar.gz asset | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.release.outputs.upload_url }} | |
asset_path: ./beamertheme-pure-minimalistic.tar.gz | |
asset_name: beamertheme-pure-minimalistic.tar.gz | |
asset_content_type: application/tar.gz | |
- name: Upload beamertheme-pure-minimalistic-demo.pdf | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.release.outputs.upload_url }} | |
asset_path: ./beamertheme-pure-minimalistic-demo.pdf | |
asset_name: beamertheme-pure-minimalistic-demo.pdf | |
asset_content_type: application/pdf |