Skip to content

Commit

Permalink
ci: misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Dec 4, 2024
1 parent 5eb41ec commit 50d6ac0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ jobs:
name: release
url: https://pypi.org/project/stringenum/
permissions:
id-token: write
contents: write
attestations: write
id-token: write # https://docs.pypi.org/trusted-publishers/using-a-publisher/#github-actions
contents: write # Required for creating a release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Important for changelog
fetch-depth: 0 # Required for changelog

- uses: actions/setup-python@v5
with:
Expand All @@ -35,13 +34,10 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: Build
run: |
uv build
rm dist/.gitignore
run: uv build

- uses: actions/attest-build-provenance@v1
with:
subject-path: "dist/*"
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Generate changelog with git-cliff
uses: tj-actions/git-cliff@v1
Expand All @@ -53,11 +49,7 @@ jobs:
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
bodyFile: "CHANGELOG.md"
draft: false
prerelease: false

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ on:
workflow_dispatch:
workflow_call:

defaults:
run:
shell: bash

env:
FORCE_COLOR: 1

Expand Down Expand Up @@ -52,7 +48,7 @@ jobs:
id: setup-uv
uses: astral-sh/setup-uv@v4

- name: Run tests and generate coverage
- name: Run nox
run: uv run nox

- name: Build
Expand Down

0 comments on commit 50d6ac0

Please sign in to comment.