Configure a concurrency group for the deploy action
[GitHub/WoltLab/woltlab.github.io.git] / .github / workflows / deploy.yml
CommitLineData
5144f3dd
TD
1name: Deploy
2
3on:
4 push:
a63ec8f9
TD
5 branches:
6 - '5.4'
5144f3dd
TD
7
8jobs:
9 deploy:
a4b680e1
TD
10 concurrency:
11 group: target
12 cancel-in-progress: true
5144f3dd
TD
13 name: Deploy
14 runs-on: ubuntu-latest
15 steps:
a63ec8f9
TD
16 - uses: actions/checkout@v2
17 with:
18 fetch-depth: 0
19 - uses: actions/setup-python@v1
20 with:
21 python-version: '3.x'
22 - run: pip3 install -r requirements.txt
23 - name: Prepare git
24 run: |
25 git config user.name "WoltLab GmbH"
26 git config user.email "woltlab@woltlab.com"
27 - name: Deploy documentation
c3d1fc0a 28 run: mike deploy --branch "target" --push "${GITHUB_REF#refs/heads/}"