Skip to content

chore: release 2024.1.2 #29

chore: release 2024.1.2

chore: release 2024.1.2 #29

Workflow file for this run

name: Release theme to PyPI
permissions:
contents: write
on:
push:
tags:
- 20*
jobs:
build:
name: build dist files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
working-directory: static
- run: npm run build
working-directory: static
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install build
run: python -m pip install --upgrade build
- name: build dist
run: python -m build
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/*
if-no-files-found: error
publish:
environment:
name: pypi-release
name: release to pypi
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifacts
path: dist
- name: Push build artifacts to PyPI
uses: pypa/[email protected]
with:
skip_existing: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
release:
name: write release note
runs-on: ubuntu-latest
needs: publish
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npx changelogithub --no-group
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}