33 lines
797 B
YAML
33 lines
797 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: document
|
|
run: nix develop --command l3build-wrapped doc
|
|
- name: build
|
|
run: nix develop --command l3build-wrapped ctan -q -H --show-log-on-error
|
|
release:
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
needs:
|
|
- build-and-test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: googleapis/release-please-action@v4
|
|
with:
|
|
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|