Compare commits
No commits in common. "master" and "v0.2.22" have entirely different histories.
3 changed files with 9 additions and 15 deletions
|
|
@ -19,9 +19,6 @@ 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
|
||||||
|
|
@ -109,25 +106,22 @@ jobs:
|
||||||
-H "Authorization: token ${TOKEN}" \
|
-H "Authorization: token ${TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "${PAYLOAD}" \
|
-d "${PAYLOAD}" \
|
||||||
"${API}/releases")
|
"https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/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 релиза"); process.stdout.write(String(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 релиза"); console.log(release.id) })')
|
||||||
printf '%s' "${RELEASE_ID}" > /tmp/release-id.txt
|
echo "id=${RELEASE_ID}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- 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}")
|
||||||
URL="${API}/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}"
|
curl --fail-with-body --silent --show-error -X POST \
|
||||||
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}" \
|
||||||
"${URL}"
|
"https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases/${RELEASE_ID}/assets?name=${ASSET_NAME}"
|
||||||
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.28",
|
"version": "0.2.22",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "aero-mail",
|
"name": "aero-mail",
|
||||||
"version": "0.2.28",
|
"version": "0.2.22",
|
||||||
"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.28",
|
"version": "0.2.22",
|
||||||
"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