Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Sep 25, 2024
1 parent 542eec3 commit 20e04e4
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/publish.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
name: Publish
name: Release

on:
push:
tags:
- "v*"
workflow_dispatch:

permissions:
contents: read
id-token: write
packages: write

jobs:
publish:
pypi:
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
id-token: write
packages: write
steps:
- name: "Check out source code"
uses: "actions/checkout@v4"
- name: "Install Python"
uses: "actions/setup-python@v5"
- name: "Install dependencies"
run: pip install setuptools wheel build
- name: "Build"
run: python -m build
- name: "Publish"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
version: latest
- name: Build package
run: uv build
- name: "Upload distribution packages to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
docker:
runs-on: ubuntu-latest
environment: release
steps:
- name: "Check out source code"
uses: "actions/checkout@v4"
- name: Capture Docker metadata
id: meta
uses: docker/metadata-action@v5
Expand Down

0 comments on commit 20e04e4

Please sign in to comment.