Skip to content

Commit

Permalink
fix: merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeesters committed Aug 23, 2024
2 parents eea4893 + ddab9c7 commit 8c9b344
Show file tree
Hide file tree
Showing 93 changed files with 3,870 additions and 522 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Build LaTex sources.

on: push
on:
push:
pull_request:

jobs:
build:
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest

steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt-get install -y python3-yaml
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends
python3-yaml
texlive
texlive-fonts-extra
texlive-latex-extra
Expand All @@ -20,20 +24,33 @@ jobs:
texlive-pstricks
texlive-science
latexmk
ghostscript

- 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 ;
- name: Certificate compile
run: |
cd certificates && ./certificate_generator --exportfile participant_test.csv --textemplate template_english.tex --config config.yaml
- name: Upload .pdf File
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Slides
path: |
slides/*.pdf
link:
runs-on: ubuntu-latest
needs: build # make sure the artifacts are uploaded first
permissions:
contents: write # for commenting on your commit
pull-requests: write # for commenting on your pr
steps:
- uses: beni69/artifact-link@v1
with:
token: ${{ github.token }}
56 changes: 56 additions & 0 deletions .github/workflows/build_release.bck
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Build PDFs and bundle sources.

on:
push:
branches:
- main

jobs:
build:
name: Release Artifacts
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt-get install -y python3-yaml
texlive
texlive-fonts-extra
texlive-latex-extra
texlive-luatex
texlive-pictures
texlive-plain-generic
texlive-pstricks
texlive-science
latexmk

- 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

#- name: Upload .pdf File
#uses: actions/upload-artifact@v3
#with:
#name: Slides
#path: |
# slides/*.pdf
- name: Create a release and upload
#needs: build
#id: create_release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
files: |
slides/Snakemake_HPC_Users.pdf
slides/Snakemake_HPC_Creators.pdf
slides/Snakemake_HPC_User_Creator_Combi.pdf
16 changes: 16 additions & 0 deletions .github/workflows/conventional-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PR
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize

jobs:
title-format:
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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 install -y python3-yaml
texlive
texlive-fonts-extra
texlive-latex-extra
texlive-luatex
texlive-pictures
texlive-plain-generic
texlive-pstricks
texlive-science
latexmk

- 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
release-please:
runs-on: ubuntu-latest
needs: build
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: simple
package-name: "snakemake-hpc-teaching-material"
- name: Upload Release Artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh realease upload ${{ steps.release.outputs.tag_name }}
slides/Snakemake_HPC_Users.pdf
slides/Snakemake_HPC_Creators.pdf
slides/Snakemake_HPC_User_Creator_Combi.pdf
slides/Snakemake_HPC_Admins.pdf
Loading

0 comments on commit 8c9b344

Please sign in to comment.