mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-29 12:11:39 +00:00
release configuration added for desktop-app
This commit is contained in:
85
.github/workflows/desktop-build.yml
vendored
85
.github/workflows/desktop-build.yml
vendored
@ -2,6 +2,19 @@ name: "Build: Desktop"
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
semver:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
secrets:
|
||||||
|
KEYSTORE:
|
||||||
|
required: true
|
||||||
|
KEY_ALIAS:
|
||||||
|
required: true
|
||||||
|
KEY_PASS:
|
||||||
|
required: true
|
||||||
|
KEY_STORE_PASS:
|
||||||
|
required: true
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
paths: [ "desktopApp", "frontend" ]
|
paths: [ "desktopApp", "frontend" ]
|
||||||
@ -63,21 +76,73 @@ jobs:
|
|||||||
cd desktopApp/release-builds/
|
cd desktopApp/release-builds/
|
||||||
zip -r /desktopApp-linux.zip ./Robosats-linux-x64/*
|
zip -r /desktopApp-linux.zip ./Robosats-linux-x64/*
|
||||||
|
|
||||||
- name: Upload macOS Build Artifact
|
- name: 'Get Commit Hash'
|
||||||
|
id: commit
|
||||||
|
uses: pr-mpt/actions-commit-hash@v3
|
||||||
|
|
||||||
|
- name: 'Upload mac-build Release Artifact (for Release)'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
if: inputs.semver != '' # only if this workflow is called from a push to tag (a Release)
|
||||||
with:
|
with:
|
||||||
name: desktopApp-mac.zip
|
name: robosats-desktop-${{ inputs.semver }}-mac.zip
|
||||||
path: desktopApp/release-builds/desktopApp-mac.zip
|
path: desktopApp/release-builds/desktopApp-mac.zip
|
||||||
|
|
||||||
- name: Upload Windows Build Artifact
|
- name: 'Upload linux-build Release Artifact (for Release)'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
if: inputs.semver != '' # only if this workflow is called from a push to tag (a Release)
|
||||||
with:
|
with:
|
||||||
name: desktopApp-win.zip
|
name: robosats-desktop-${{ inputs.semver }}-linux.zip
|
||||||
path: desktopApp/release-builds/desktopApp-win.zip
|
|
||||||
|
|
||||||
- name: Upload Linux Build Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: desktopApp-linux.zip
|
|
||||||
path: desktopApp/release-builds/desktopApp-linux.zip
|
path: desktopApp/release-builds/desktopApp-linux.zip
|
||||||
|
|
||||||
|
- name: 'Upload win-build Release Artifact (for Release)'
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: inputs.semver != '' # only if this workflow is called from a push to tag (a Release)
|
||||||
|
with:
|
||||||
|
name: robosats-desktop-${{ inputs.semver }}-win.zip
|
||||||
|
path: desktopApp/release-builds/desktopApp-win.zip
|
||||||
|
|
||||||
|
|
||||||
|
- name: Create Pre-release
|
||||||
|
id: create_release
|
||||||
|
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
||||||
|
uses: ncipollo/release-action@v1.13.0
|
||||||
|
with:
|
||||||
|
tag: desktop-${{ steps.commit.outputs.short }}
|
||||||
|
name: robosats-desktop-${{ steps.commit.outputs.short }}
|
||||||
|
prerelease: true
|
||||||
|
|
||||||
|
- name: Upload macOS Build Artifact
|
||||||
|
id: upload-release-mac-zip-asset
|
||||||
|
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: /desktopApp-mac.zip
|
||||||
|
asset_name: robosats-desktop-${{ steps.commit.outputs.short }}-mac.zip
|
||||||
|
asset_content_type: application/zip
|
||||||
|
|
||||||
|
- name: Upload Windows Build Artifact
|
||||||
|
id: upload-release-win-zip-asset
|
||||||
|
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: /desktopApp-win.zip
|
||||||
|
asset_name: robosats-desktop-${{ steps.commit.outputs.short }}-win.zip
|
||||||
|
asset_content_type: application/zip
|
||||||
|
|
||||||
|
- name: Upload Linux Build Artifact
|
||||||
|
id: upload-release-linux-zip-asset
|
||||||
|
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: /desktopApp-linux.zip
|
||||||
|
asset_name: robosats-desktop-${{ steps.commit.outputs.short }}-linux.zip
|
||||||
|
asset_content_type: application/zip
|
||||||
|
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -75,8 +75,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
semver: ${{ needs.check-versions.outputs.semver }}
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
|
desktop-build:
|
||||||
|
uses: RoboSats/robosats/.github/workflows/desktop-build.yml@main
|
||||||
|
needs: [frontend-build, check-versions]
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
semver: ${{ needs.check-versions.outputs.semver }}
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [check-versions, integration-tests, coordinator-image, selfhosted-client-image, web-client-image, android-build]
|
needs: [check-versions, integration-tests, coordinator-image, selfhosted-client-image, web-client-image, android-build, desktop-build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -172,3 +179,19 @@ jobs:
|
|||||||
asset_path: app-x86-release.apk
|
asset_path: app-x86-release.apk
|
||||||
asset_name: robosats-${{ needs.check-versions.outputs.semver }}-x86.apk
|
asset_name: robosats-${{ needs.check-versions.outputs.semver }}-x86.apk
|
||||||
asset_content_type: application/apk
|
asset_content_type: application/apk
|
||||||
|
|
||||||
|
- name: 'Download macOS Build Artifact'
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: robosats-desktop-${{ needs.check-versions.outputs.semver }}-mac.zip
|
||||||
|
path: .
|
||||||
|
- name: 'Upload macOS Build Artifact'
|
||||||
|
id: upload-release-mac-zip-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||||
|
asset_path: desktopApp-mac.zip
|
||||||
|
asset_name: robosats-desktop-${{ needs.check-versions.outputs.semver }}-mac.zip
|
||||||
|
asset_content_type: application/zip
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "Robosats",
|
"name": "robosats-desktop-app",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
2641
desktopApp/yarn.lock
2641
desktopApp/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user