Fix create-release.py - use env vars instead of CLI args
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 2s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m1s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 12s
CI Pipeline / Build .deb & Release (push) Failing after 3m14s
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 2s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m1s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 12s
CI Pipeline / Build .deb & Release (push) Failing after 3m14s
This commit is contained in:
@ -258,15 +258,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Gitea Release (tags only)
|
- name: Create Gitea Release (tags only)
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEATOKEN }}
|
||||||
|
GITEA_URL: https://gitea-lxc.moon-dragon.us
|
||||||
|
GITEA_REPO: echo/linux_patch_manager
|
||||||
run: |
|
run: |
|
||||||
. "$HOME/.cargo/env"
|
|
||||||
VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*=.*"\(.*\)"/\1/')
|
VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*=.*"\(.*\)"/\1/')
|
||||||
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
|
|
||||||
REF_NAME="${GITHUB_REF_NAME:-v${VERSION}}"
|
|
||||||
DEB=$(ls linux-patch-manager_*.deb)
|
DEB=$(ls linux-patch-manager_*.deb)
|
||||||
python3 scripts/create-release.py \
|
python3 scripts/create-release.py \
|
||||||
--repo "${REPO}" \
|
--tag "${GITHUB_REF_NAME}" \
|
||||||
--tag "${REF_NAME}" \
|
--deb "${DEB}"
|
||||||
--title "Release ${REF_NAME}" \
|
|
||||||
--token "${{ secrets.GITEATOKEN }}" \
|
|
||||||
--gitea-url "https://gitea-lxc.moon-dragon.us"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user