Separate pipelines for PRs and releases
This commit is contained in:
parent
431607c6e5
commit
72d0012f33
30
.drone.yml
30
.drone.yml
@ -2,14 +2,38 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: sphinxdoc/sphinx-latexpdf:5.0.2
|
image: sphinxdoc/sphinx-latexpdf:5.0.2
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get -y install texlive-lang-german rsync
|
- apt-get -y install texlive-lang-german
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- make -j4 latexpdf
|
- make latexpdf
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: publish
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: sphinxdoc/sphinx-latexpdf:5.0.2
|
||||||
|
commands:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -y install texlive-lang-german
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- make latexpdf
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
@ -17,5 +41,3 @@ steps:
|
|||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
base_url: https://git.wtf-eg.de
|
base_url: https://git.wtf-eg.de
|
||||||
files: build/latex/rtfm-dashandbuchderfreefederatedfleetfffleetinitiative.pdf
|
files: build/latex/rtfm-dashandbuchderfreefederatedfleetfffleetinitiative.pdf
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
Loading…
Reference in New Issue
Block a user