Tool rename
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
||||
git reset --hard "${TAG_NAME}"
|
||||
git clean -fd
|
||||
|
||||
- name: Build nwn-tool
|
||||
- name: Build sow-toolkit
|
||||
run: |
|
||||
set -euo pipefail
|
||||
CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}"
|
||||
@@ -38,15 +38,15 @@ jobs:
|
||||
set -euo pipefail
|
||||
CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}"
|
||||
cd "${CHECKOUT_PATH}"
|
||||
binary="tools/nwn-tool"
|
||||
binary="tools/sow-toolkit"
|
||||
if [[ ! -x "${binary}" ]]; then
|
||||
echo "Missing built tool: ${binary}"
|
||||
exit 1
|
||||
fi
|
||||
archive="/tmp/nwn-tool-linux-amd64-${TAG_NAME}.tar.gz"
|
||||
tar -czf "${archive}" -C tools nwn-tool
|
||||
archive="/tmp/sow-toolkit-linux-amd64-${TAG_NAME}.tar.gz"
|
||||
tar -czf "${archive}" -C tools sow-toolkit
|
||||
echo "archive=${archive}" >> "$GITHUB_OUTPUT"
|
||||
echo "asset_name=nwn-tool-linux-amd64.tar.gz" >> "$GITHUB_OUTPUT"
|
||||
echo "asset_name=sow-toolkit-linux-amd64.tar.gz" >> "$GITHUB_OUTPUT"
|
||||
echo "tag=${TAG_NAME}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create release and upload artifact
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
RELEASE_ID=$(jq -r '.id' "${RESP_FILE}")
|
||||
else
|
||||
BODY=$(jq -n --arg t "${TAG_NAME}" \
|
||||
'{tag_name: $t, name: $t, body: "nwn-tool binary release built by Gitea Actions."}')
|
||||
'{tag_name: $t, name: $t, body: "sow-toolkit binary release built by Gitea Actions."}')
|
||||
CODE=$(curl -sS -o "${RESP_FILE}" -w "%{http_code}" "${AUTH[@]}" \
|
||||
-X POST -H "Content-Type: application/json" \
|
||||
-d "${BODY}" \
|
||||
@@ -100,7 +100,7 @@ jobs:
|
||||
env:
|
||||
TAG_NAME: ${{ github.ref_name }}
|
||||
run: |
|
||||
rm -f "/tmp/nwn-tool-linux-amd64-${TAG_NAME}.tar.gz" /tmp/gitea-release.json
|
||||
rm -f "/tmp/sow-toolkit-linux-amd64-${TAG_NAME}.tar.gz" /tmp/gitea-release.json
|
||||
|
||||
- name: Prune old releases (keep latest 1)
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user