-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (66 loc) · 2.46 KB
/
release-please.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
on:
push:
branches:
- main
name: release-please
jobs:
build:
name: Release Artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends
python3-yaml
texlive
texlive-fonts-extra
texlive-latex-extra
texlive-luatex
texlive-pictures
texlive-plain-generic
texlive-pstricks
texlive-science
latexmk
ghostscript
poppler-utils
- name: LaTeX compile
run: |
./render --master-tex Snakemake_HPC_Users.tex \
--configfile config/config_for_github.yaml ;
./render --master-tex Snakemake_HPC_Creators.tex \
--configfile config/config_for_github.yaml;
./render --master-tex Snakemake_HPC_User_Creator_Combi.tex \
--configfile config/config_for_github.yaml
./render --master-tex Snakemake_HPC_Admins.tex \
--configfile config/config_for_github.yaml;
zip slides slides/*pdf
# - name: Upload Release Artifacts
#if: ${{ steps.release.outputs.release_created }}
#uses: actions/upload-artifact@v4
#with:
#name: Slides
#path: |
# slides/Snakemake_HPC_Creators.pdf;
# slides/Snakemake_HPC_Users.pdf;
# slides/Snakemake_HPC_User_Creator_Combi.pdf;
# slides/Snakemake_HPC_Admins.pdf;
release-please:
runs-on: ubuntu-latest
needs: build
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: simple
# 'package-name' not allowed here.
#package-name: "snakemake-hpc-teaching-material"
- uses: actions/upload-release-asset@v1
id: upload-release-asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./slides.zip
asset_name: slides.zip
asset_content_type: slide/zip
# - name: Upload Release Artifacts