docs: align README license sections with the LICENSE file (#374) #64
Workflow file for this run
This file contains hidden or 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
| name: Publish | |
| on: | |
| push: | |
| tags: | |
| - 'py-v*.*.*' | |
| - 'ts-v*.*.*' | |
| workflow_dispatch: | |
| jobs: | |
| publish-python: | |
| if: startsWith(github.ref, 'refs/tags/py-v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/asqav | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install build | |
| # The verifier lives under src/asqav/verifier, so packages=["src/asqav"] | |
| # ships it in both the sdist and the wheel. Build both: the wheel is built | |
| # from the sdist round-trip, which proves the sdist is self-contained. | |
| - run: python -m build | |
| working-directory: python | |
| - uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: python/dist | |
| publish-typescript: | |
| if: startsWith(github.ref, 'refs/tags/ts-v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: npm ci | |
| working-directory: typescript | |
| - run: npm run build | |
| working-directory: typescript | |
| - run: npm publish --access public | |
| working-directory: typescript | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |