Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbfcb0ec38 | ||
| 2fd0b4024d | |||
|
|
cb4f6094ff | ||
| 598bd61c77 | |||
|
|
4d14ecdb0e | ||
| 1518016568 | |||
|
|
34d6dc0aaf | ||
| cb7706ca90 | |||
|
|
a798025423 | ||
| 65d5e3668c | |||
|
|
f3220d0859 | ||
| 0adc56da6e |
3 changed files with 15 additions and 9 deletions
|
|
@ -19,6 +19,9 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: electronuserland/builder:wine
|
image: electronuserland/builder:wine
|
||||||
|
|
||||||
|
env:
|
||||||
|
API: https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (full history for tags)
|
- name: Checkout (full history for tags)
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -106,22 +109,25 @@ jobs:
|
||||||
-H "Authorization: token ${TOKEN}" \
|
-H "Authorization: token ${TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "${PAYLOAD}" \
|
-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)) })')
|
||||||
echo "id=${RELEASE_ID}" >> "$GITHUB_OUTPUT"
|
printf '%s' "${RELEASE_ID}" > /tmp/release-id.txt
|
||||||
|
|
||||||
- name: Upload Linux and Windows release files
|
- name: Upload Linux and Windows release files
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
RELEASE_ID: ${{ steps.release.outputs.id }}
|
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
|
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
|
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}")
|
ASSET_NAME=$(basename "${ASSET_PATH}")
|
||||||
curl --fail-with-body --silent --show-error -X POST \
|
URL="${API}/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}"
|
||||||
|
curl --globoff --fail-with-body --silent --show-error -X POST \
|
||||||
-H "Authorization: token ${TOKEN}" \
|
-H "Authorization: token ${TOKEN}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary @"${ASSET_PATH}" \
|
--data-binary @"${ASSET_PATH}" \
|
||||||
"https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}"
|
"${URL}"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "aero-mail",
|
"name": "aero-mail",
|
||||||
"version": "0.2.22",
|
"version": "0.2.28",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "aero-mail",
|
"name": "aero-mail",
|
||||||
"version": "0.2.22",
|
"version": "0.2.28",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@material/material-color-utilities": "^0.4.0",
|
"@material/material-color-utilities": "^0.4.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "aero-mail",
|
"name": "aero-mail",
|
||||||
"version": "0.2.22",
|
"version": "0.2.28",
|
||||||
"description": "Desktop email client built with Vue 3 + Electron",
|
"description": "Desktop email client built with Vue 3 + Electron",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "d.a.kolesov",
|
"name": "d.a.kolesov",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue