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
|
- name: Build package
|
||||||
run: uv build
|
run: uv build
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Save dist path
|
||||||
uses: actions/upload-artifact@v4
|
run: echo "DIST_PATH=$(pwd)/dist" >> $GITHUB_ENV
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/
|
|
||||||
|
|
||||||
publish-gitea:
|
publish-gitea:
|
||||||
needs: build
|
needs: build
|
||||||
@ -56,11 +53,16 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Checkout code
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
name: dist
|
- name: Get version from tag
|
||||||
path: dist/
|
run: |
|
||||||
|
VERSION=${GITHUB_REF#refs/tags/v}
|
||||||
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Build package
|
||||||
|
run: uv build
|
||||||
|
|
||||||
- name: Publish to Gitea Packages
|
- name: Publish to Gitea Packages
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user