-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1012 Bytes
/
main.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
---
# yamllint disable-line rule:truthy
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
env:
path: build/distrib/*/*.zip
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: xu-cheng/texlive-action/full@v1
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
run: |
l3build ctan
- uses: actions/upload-artifact@v3
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
path: |
${{ env.path }}
- uses: xu-cheng/texlive-action/full@v1
if: startsWith(github.ref, 'refs/tags/')
with:
run: |
apk add git
git config --global --add safe.directory '*'
l3build tag $(git tag | tail -n1)
l3build ctan
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ env.path }}