Skip to content

github publish hawc client #2

github publish hawc client

github publish hawc client #2

Workflow file for this run

name: publish
on:
pull_request:
push:
branches:
- main
tags:
- "hawc-client-[0-9]+.[0-9]+"
workflow_dispatch:
jobs:
publish hawc-client:

Check failure on line 13 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 13, Col: 3): The identifier 'publish hawc-client' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/publish.yml (Line: 39, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.PUBLISH_PYPI != ""
runs-on: ubuntu-22.04
permissions:
id-token: write
environment:
name: publish
url: https://test.pypi.org/project/hawc-client/
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: 'x64'
cache: 'pip'
- name: install
run: python -m pip install -U pip wheel flit
- name: Build client
run: cd client && flit build
- name: Publish package to TestPyPI
if: secrets.PUBLISH_PYPI != ""
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
attestations: true
print-hash: true
packages-dir: client/dist/