-
-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (45 loc) · 1.95 KB
/
upload_assets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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