Skip to content

GHA release pipeline #1154

GHA release pipeline

GHA release pipeline #1154

Workflow file for this run

name: CI
on:
push:
branches: ["trunk"]
tags: ["v*"]
pull_request:
branches: ["trunk"]
permissions:
contents: read
jobs:
tox:
name: "tox -e ${{ matrix.tox-env }}"
strategy:
matrix:
tox-env: ["test", "lint"]
runs-on: ubuntu-24.04
env:
TOXENV: "${{ matrix.tox-env }}"
RUFF_OUTPUT_FORMAT: "github"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/[email protected]
with:
python-version: "3.9"
cache: 'pip'
cache-dependency-path: |
requirements.txt
requirements_*.txt
- run: "python -m pip install tox"
# Temporary hack: create files normally created by bin/compile-static.py
# that are expected to exist by the manifest.json view test.
- run: |
mkdir yarrharr/static
touch yarrharr/static/{icon,logotype,lettertype}-xyz.{ico,png,svg}
touch yarrharr/static/{normalize,main,fonts}-xyz.css
touch yarrharr/static/{runtime,vendor,main}-xyz.js
- run: "python -m tox"
build:
name: "build dist"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: apt install
run: |
sudo apt-get update
sudo apt-get install --no-install-suggests --no-install-recommends inkscape icoutils scour optipng
- uses: actions/[email protected]
with:
python-version: "3.9"
cache: 'pip'
cache-dependency-path: |
requirements_static.txt
- run: "python -m pip install tox"
- run: "python -m tox -e static --notest"
- run: "tox -e static"
- run: "bin/release.sh"
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*.*
if-no-files-found: error
release:
name: "release"

Check failure on line 88 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 88, Col: 5): Required property is missing: runs-on
if: startsWith(github.ref, 'refs/tags/v')
needs: [build]
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- run: |
gh release create "${TAG_REF:##*/}" \
--verify-tag \
--title "Yarrharr ${TAG_REF:##*/v}" \
--generate-notes \
dist/yarrharr-*.tar.gz \
dist/yarrharr-*.whl
env:
TAG_REF: ${{ github.ref }}