Skip to content

chore: release 1.6.2 #37

chore: release 1.6.2

chore: release 1.6.2 #37

Workflow file for this run

name: Release to PyPI
permissions:
contents: write
on:
push:
tags:
- "1.*"
jobs:
build:
name: build dist files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: install build
run: python -m pip install --upgrade build
- name: build dist
run: python -m build
- uses: actions/upload-artifact@v6
with:
name: artifacts
path: dist/*
if-no-files-found: error
publish:
environment:
name: pypi-release
url: https://pypi.org/project/joserfc/
permissions:
id-token: write
name: release to pypi
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v7
with:
name: artifacts
path: dist
- name: Push build artifacts to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
release:
name: write release note
runs-on: ubuntu-latest
needs: publish
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npx changelogithub --no-group
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}