Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 32ebb6c579 | |||
| cc474a0c0d | |||
| dad6089f21 |
@@ -48,12 +48,29 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
TAG="latest"
|
TAG="latest"
|
||||||
BODY="Rullande bygge från senaste master. Commit: ${{ github.sha }}. Arkitekturer: linux x64 + arm64 (Pi5)."
|
BASE="https://gitea.brasse-pc.eu/$REPO/releases/download/$TAG"
|
||||||
|
BODY=$(cat <<EOF
|
||||||
|
Rullande bygge från senaste master. Commit: ${{ github.sha }}. Arkitekturer: linux x64 + arm64 (Pi5).
|
||||||
|
|
||||||
|
## Installera / uppdatera
|
||||||
|
|
||||||
|
\`\`\`bash
|
||||||
|
mkdir -p ~/.local/bin && curl -fsSL "$BASE/tui-fm-linux-\$(uname -m | sed 's/x86_64/x64/;s/aarch64/arm64/')" -o ~/.local/bin/tui-fm && chmod +x ~/.local/bin/tui-fm
|
||||||
|
\`\`\`
|
||||||
|
|
||||||
|
Kör sedan \`tui-fm\` (se till att \`~/.local/bin\` finns i \$PATH).
|
||||||
|
EOF
|
||||||
|
)
|
||||||
rid=$(curl -s -X POST "$API/repos/$REPO/releases" \
|
rid=$(curl -s -X POST "$API/repos/$REPO/releases" \
|
||||||
-H "Authorization: token $TOKEN" -H 'Content-Type: application/json' \
|
-H "Authorization: token $TOKEN" -H 'Content-Type: application/json' \
|
||||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"body\":\"$BODY\"}" | jq -r '.id // empty')
|
-d "$(jq -n --arg tag "$TAG" --arg body "$BODY" '{tag_name:$tag,name:$tag,body:$body}')" | jq -r '.id // empty')
|
||||||
[ -z "$rid" ] && rid=$(curl -s "$API/repos/$REPO/releases/tags/$TAG" \
|
if [ -z "$rid" ]; then
|
||||||
|
rid=$(curl -s "$API/repos/$REPO/releases/tags/$TAG" \
|
||||||
-H "Authorization: token $TOKEN" | jq -r '.id')
|
-H "Authorization: token $TOKEN" | jq -r '.id')
|
||||||
|
curl -s -X PATCH "$API/repos/$REPO/releases/$rid" \
|
||||||
|
-H "Authorization: token $TOKEN" -H 'Content-Type: application/json' \
|
||||||
|
-d "$(jq -n --arg body "$BODY" '{body:$body}')" -o /dev/null
|
||||||
|
fi
|
||||||
echo "release id: $rid"
|
echo "release id: $rid"
|
||||||
for f in tui-fm-linux-x64 tui-fm-linux-arm64 checksums.txt; do
|
for f in tui-fm-linux-x64 tui-fm-linux-arm64 checksums.txt; do
|
||||||
aid=$(curl -s "$API/repos/$REPO/releases/$rid/assets" \
|
aid=$(curl -s "$API/repos/$REPO/releases/$rid/assets" \
|
||||||
|
|||||||
23
.gitignore
vendored
23
.gitignore
vendored
@@ -1,23 +1,2 @@
|
|||||||
# ---> Rust
|
|
||||||
# Generated by Cargo
|
|
||||||
# will have compiled files and executables
|
|
||||||
debug/
|
|
||||||
target/
|
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
|
||||||
**/*.rs.bk
|
|
||||||
|
|
||||||
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
||||||
*.pdb
|
|
||||||
|
|
||||||
# RustRover
|
|
||||||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
||||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
||||||
#.idea/
|
|
||||||
|
|
||||||
|
|
||||||
# Added by cargo
|
|
||||||
|
|
||||||
/target
|
/target
|
||||||
|
/build
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user