fix(ci): simplify release workflow, use FORGEJO_REF_NAME
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7408e2e1b0
commit
90b94d1cc8
1 changed files with 3 additions and 8 deletions
|
|
@ -7,14 +7,9 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Extract version from tag
|
|
||||||
id: version
|
|
||||||
run: echo "VERSION=${GITEA_REF_NAME#v}" >> "$GITEA_OUTPUT"
|
|
||||||
|
|
||||||
- name: Create package archive
|
- name: Create package archive
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -39,4 +34,4 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
curl --fail --user "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}" \
|
curl --fail --user "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}" \
|
||||||
--upload-file package.zip \
|
--upload-file package.zip \
|
||||||
"https://forge.lthn.ai/api/packages/core/composer?version=${{ steps.version.outputs.VERSION }}"
|
"https://forge.lthn.ai/api/packages/core/composer?version=${FORGEJO_REF_NAME#v}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue