Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbfcb0ec38 | ||
| 2fd0b4024d | |||
|
|
cb4f6094ff | ||
| 598bd61c77 | |||
|
|
4d14ecdb0e | ||
| 1518016568 |
3 changed files with 12 additions and 8 deletions
|
|
@ -19,6 +19,9 @@ jobs:
|
|||
container:
|
||||
image: electronuserland/builder:wine
|
||||
|
||||
env:
|
||||
API: https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail
|
||||
|
||||
steps:
|
||||
- name: Checkout (full history for tags)
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -106,9 +109,9 @@ jobs:
|
|||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "${PAYLOAD}" \
|
||||
"https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases")
|
||||
"${API}/releases")
|
||||
|
||||
RELEASE_ID=$(printf '%s' "$RELEASE" | node -e 'let input = ""; process.stdin.on("data", chunk => { input += chunk }); process.stdin.on("end", () => { const release = JSON.parse(input); if (!Number.isSafeInteger(release.id)) throw new Error("Некорректный ID релиза"); console.log(release.id) })')
|
||||
RELEASE_ID=$(printf '%s' "$RELEASE" | node -e 'let input = ""; process.stdin.on("data", chunk => { input += chunk }); process.stdin.on("end", () => { const release = JSON.parse(input); if (!Number.isSafeInteger(release.id)) throw new Error("Некорректный ID релиза"); process.stdout.write(String(release.id)) })')
|
||||
printf '%s' "${RELEASE_ID}" > /tmp/release-id.txt
|
||||
|
||||
- name: Upload Linux and Windows release files
|
||||
|
|
@ -116,11 +119,12 @@ jobs:
|
|||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
RELEASE_ID=$(tr -cd '0-9' < /tmp/release-id.txt)
|
||||
test -n "${RELEASE_ID}"
|
||||
RELEASE_ID=$(cat /tmp/release-id.txt)
|
||||
# Только цифры: защита от ANSI-цветов (FORCE_COLOR) и прочего мусора
|
||||
printf '%s' "${RELEASE_ID}" | grep -qxE '[0-9]+' || { echo "Некорректный ID релиза: $(printf '%s' "${RELEASE_ID}" | od -c)"; exit 1; }
|
||||
for ASSET_PATH in "dist/aero-mail-${VERSION}.AppImage" "dist/aero-mail-${VERSION}-win-x64.exe" "dist/aero-mail-${VERSION}-win-x64.exe.blockmap" dist/latest.yml; do
|
||||
ASSET_NAME=$(basename "${ASSET_PATH}")
|
||||
URL="https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}"
|
||||
URL="${API}/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}"
|
||||
curl --globoff --fail-with-body --silent --show-error -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "aero-mail",
|
||||
"version": "0.2.25",
|
||||
"version": "0.2.28",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "aero-mail",
|
||||
"version": "0.2.25",
|
||||
"version": "0.2.28",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@material/material-color-utilities": "^0.4.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "aero-mail",
|
||||
"version": "0.2.25",
|
||||
"version": "0.2.28",
|
||||
"description": "Desktop email client built with Vue 3 + Electron",
|
||||
"author": {
|
||||
"name": "d.a.kolesov",
|
||||
|
|
|
|||
Loading…
Reference in a new issue