[pre-commit.ci] pre-commit autoupdate #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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 }} |