ci: remove upload-artifact (not supported by Gitea) and build in publish job
This commit is contained in:
parent
6198de6d65
commit
1e4d8bdf9f
@ -44,11 +44,8 @@ jobs:
|
||||
- name: Build package
|
||||
run: uv build
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
- name: Save dist path
|
||||
run: echo "DIST_PATH=$(pwd)/dist" >> $GITHUB_ENV
|
||||
|
||||
publish-gitea:
|
||||
needs: build
|
||||
@ -56,11 +53,16 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get version from tag
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Build package
|
||||
run: uv build
|
||||
|
||||
- name: Publish to Gitea Packages
|
||||
run: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user