krayt/.github/workflows/release-pypi.yaml
2025-04-23 20:09:52 -05:00

47 lines
1.3 KiB
YAML

name: Release Krayt
on:
workflow_dispatch:
push:
paths:
- "krayt/**"
- "pyproject.toml"
permissions:
contents: write
pull-requests: write
issues: read
packages: none
id-token: write
jobs:
release-krayt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - uses: waylonwalker/hatch-action@v4
# with:
# before-command: "lint-format"
# env:
# # required for gh release
# GH_TOKEN: ${{ github.token }}
#
- name: Install just
run: |
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
shell: bash
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/0.6.16/install.sh | sh
shell: bash
- name: Install hatch
run: |
uv pip install hatch --system
shell: bash
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
shell: bash
- name: GitHub Release (just release)
run: just create-release
env:
GH_TOKEN: ${{ github.token }}
shell: bash