This commit is contained in:
1 parent
9401f19ad5
commit
d5db7f2d2a
4 files changed
+236
-29
No files matched your search
@@ -36,13 +36,26 @@ jobs:
|
||||
- name: Derive the nightly identity
|
||||
shell: bash
|
||||
env:
|
||||
GITEA_RELEASE_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
|
||||
API_URL: ${{ gitea.api_url }}
|
||||
SERVER_URL: ${{ gitea.server_url }}
|
||||
REPOSITORY: ${{ gitea.repository }}
|
||||
RUN_NUMBER: ${{ gitea.run_number }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
date_id=$(date -u +%Y%m%d)
|
||||
version="0.0.0-nightly.${date_id}.${RUN_NUMBER}"
|
||||
owner=${REPOSITORY%%/*}
|
||||
repo=${REPOSITORY#*/}
|
||||
version=$(
|
||||
python3 scripts/gitea_release.py \
|
||||
--api-url "$API_URL" \
|
||||
derive-nightly-version \
|
||||
--owner "$owner" \
|
||||
--repo "$repo" \
|
||||
--cmake-file CMakeLists.txt \
|
||||
--date-id "$date_id" \
|
||||
--run-number "$RUN_NUMBER"
|
||||
)
|
||||
tag="nightly-${date_id}-${RUN_NUMBER}"
|
||||
artifact="echoion-${version}-linux-x86_64.tar.zst"
|
||||
url="${SERVER_URL}/${REPOSITORY}/releases/download/${tag}/${artifact}"
|
||||
|
||||
Reference in new issue
Block a user