Skip to content

avoid blank line before </PDF> #92

avoid blank line before </PDF>

avoid blank line before </PDF> #92

Workflow file for this run

name: Deployment
# Currently we run in two situations:
on:
# Only triggers for new tags
push:
tags: "*"
branches: '*'
jobs:
# Mostly the same as the main.yaml workflow, but we only use a single job
l3build:
runs-on: ubuntu-22.04
steps:
# Boilerplate
- name: Checkout repository
uses: actions/checkout@v4
- name: Collect files
run: |
mkdir -p ctan/show-pdf-tags
cp LICENSE RelaxNG/*.{rnc,rng} show-pdf-tags/{README.md,show-pdf-tags*} ctan/show-pdf-tags
cd ctan
zip -r show-pdf-tags.zip show-pdf-tags
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: Package
path: |
ctan*
- name: Validate CTAN package
uses: ./.github/actions/ctan-upload
with:
uploader: Dummy Name
email: dryrun@example.com
filename: "ctan/show-pdf-tags.zip"
dry-run: true
github:
if: startsWith(github.event.ref, 'refs/tags/')
runs-on: ubuntu-22.04
needs:
- l3build
permissions:
contents: write
steps:
- name: Download package artifact
uses: actions/download-artifact@v4
with:
name: Package
- name: Create GitHub release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
id: release
with:
artifacts: "ctan/show-pdf-tags.zip"
prerelease: ${{ endsWith(github.ref, '-dev') }}
token: ${{ secrets.GITHUB_TOKEN }}
# bodyFile: ctan.ann
# If a test failed, we already notified in the other workflow. Here we notify
# when a release has been created.
ctan-upload:
if: "startsWith(github.event.ref, 'refs/tags/') && !endsWith(github.ref, '-dev')"
runs-on: ubuntu-22.04
environment: CTAN
needs:
- l3build
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: .github
- name: Download package artifact
uses: actions/download-artifact@v4
with:
name: Package
- name: Upload CTAN package
uses: ./.github/actions/ctan-upload
with:
uploader: ${{ secrets.CTAN_NAME }}
email: ${{ secrets.CTAN_EMAIL }}
filename: "ctan/show-pdf-tags.zip"
dry-run: false