Skip to content

Commit 81bf123

Browse files
committed
docs: add CI badge to README and fix release workflow
- Add CI status badge to README badge row - Replace broken GHCR publish with GitHub Releases: creates a release with wheel + sdist attached as assets on v* tags
1 parent 0a772f2 commit 81bf123

2 files changed

Lines changed: 11 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ on:
55
tags: ["v*"]
66

77
permissions:
8-
contents: read
9-
packages: write
8+
contents: write
109

1110
jobs:
1211
build:
@@ -26,28 +25,21 @@ jobs:
2625
name: dist
2726
path: dist/
2827

29-
publish:
30-
name: Publish to GitHub Packages
28+
release:
29+
name: Create GitHub Release
3130
runs-on: ubuntu-latest
3231
needs: build
33-
environment: release
34-
permissions:
35-
contents: read
36-
packages: write
3732
steps:
3833
- uses: actions/download-artifact@v4
3934
with:
4035
name: dist
4136
path: dist/
42-
- uses: actions/setup-python@v5
43-
with:
44-
python-version: "3.13"
45-
- run: pip install twine
46-
- name: Publish package
37+
- name: Create release with assets
4738
env:
48-
TWINE_USERNAME: __token__
49-
TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
39+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
TAG_NAME: ${{ github.ref_name }}
5041
run: |
51-
twine upload \
52-
--repository-url https://ghcr.io/v2/fireflyframework/pyfly \
53-
dist/*
42+
gh release create "$TAG_NAME" dist/* \
43+
--repo "${{ github.repository }}" \
44+
--title "$TAG_NAME" \
45+
--generate-notes

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</p>
88

99
<p align="center">
10+
<a href="https://github.com/fireflyframework/pyfly/actions/workflows/ci.yml"><img src="https://github.com/fireflyframework/pyfly/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
1011
<a href="https://github.com/fireflyframework"><img src="https://img.shields.io/badge/Firefly_Framework-official-ff6600?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMiAyQzYuNDggMiAyIDYuNDggMiAxMnM0LjQ4IDEwIDEwIDEwIDEwLTQuNDggMTAtMTBTMTcuNTIgMiAxMiAyeiIvPjwvc3ZnPg==" alt="Firefly Framework"></a>
1112
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.12%2B-blue?logo=python&logoColor=white" alt="Python 3.12+"></a>
1213
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-green" alt="License: Apache 2.0"></a>

0 commit comments

Comments
 (0)