Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 22 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,13 @@ jobs:
run: dotnet build --no-restore SQLSchemaCompare.UI -r win-x64 -c Release
- name: Publish win-x64
run: dotnet publish --no-build --no-restore SQLSchemaCompare.UI -r win-x64 -c Release
- name: Upload SQLSchemaCompare artifacts
uses: actions/upload-artifact@v7
with:
name: SQLSchemaCompare
path: SQLSchemaCompare
- name: Upload win-x64 artifacts
uses: actions/upload-artifact@v7
with:
name: publish-win
path: .publish
if-no-files-found: 'error'
include-hidden-files: true

- name: Restore linux-x64 dependencies
run: dotnet restore -r linux-x64
Expand All @@ -52,6 +49,8 @@ jobs:
with:
name: publish-linux
path: .publish
if-no-files-found: 'error'
include-hidden-files: true

- name: Restore osx-x64 dependencies
run: dotnet restore -r osx-x64
Expand All @@ -64,6 +63,8 @@ jobs:
with:
name: publish-osx-x64
path: .publish
if-no-files-found: 'error'
include-hidden-files: true

- name: Restore osx-arm64 dependencies
run: dotnet restore -r osx-arm64
Expand All @@ -76,6 +77,8 @@ jobs:
with:
name: publish-osx-arm64
path: .publish
if-no-files-found: 'error'
include-hidden-files: true

installer_win_x64:
runs-on: windows-latest
Expand All @@ -84,6 +87,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
Expand All @@ -92,13 +96,8 @@ jobs:
cache-dependency-path: |
SQLSchemaCompare/yarn.lock
SQLSchemaCompare.UI/yarn.lock
- name: Download SQLSchemaCompare artifact
uses: actions/download-artifact@v4
with:
name: SQLSchemaCompare
path: SQLSchemaCompare
- name: Download publish-win artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: publish-win
path: .publish
Expand All @@ -120,6 +119,7 @@ jobs:
name: installer-win-x64
path: installer/*.exe
retention-days: 7
if-no-files-found: 'error'

installer_linux_x64:
runs-on: ubuntu-latest
Expand All @@ -128,6 +128,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
Expand All @@ -136,19 +137,13 @@ jobs:
cache-dependency-path: |
SQLSchemaCompare/yarn.lock
SQLSchemaCompare.UI/yarn.lock
- name: Download SQLSchemaCompare artifact
uses: actions/download-artifact@v4
with:
name: SQLSchemaCompare
path: SQLSchemaCompare
- name: Download publish-linux artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: publish-linux
path: .publish
- name: Prepare artifacts
run: |
chmod -R a+rwx SQLSchemaCompare/node_modules
chmod +x .publish/TiCodeX.SQLSchemaCompare.UI
chmod +x .publish/TiCodeX.SQLSchemaCompare.CLI
- name: Create installer
Expand All @@ -167,8 +162,12 @@ jobs:
uses: actions/upload-artifact@v7
with:
name: installer-linux-x64
path: installer/*.{deb,rpm,tar.gz}
path: |
installer/*.deb
installer/*.rpm
installer/*.tar.gz
retention-days: 7
if-no-files-found: 'error'

installer_osx:
runs-on: macos-latest
Expand All @@ -180,6 +179,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
Expand All @@ -188,23 +188,15 @@ jobs:
cache-dependency-path: |
SQLSchemaCompare/yarn.lock
SQLSchemaCompare.UI/yarn.lock
- name: Download SQLSchemaCompare artifact
uses: actions/download-artifact@v4
with:
name: SQLSchemaCompare
path: SQLSchemaCompare
- name: Download publish-osx-${{ matrix.arch }} artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: publish-osx-${{ matrix.arch }}
path: .publish
- name: Prepare artifacts
run: |
chmod -R a+rwx SQLSchemaCompare/node_modules
chmod +x .publish/TiCodeX.SQLSchemaCompare.UI
chmod +x .publish/TiCodeX.SQLSchemaCompare.CLI
cd SQLSchemaCompare
yarn install --frozen-lockfile
- name: Create installer
run: yarn dist-osx
working-directory: SQLSchemaCompare
Expand All @@ -225,6 +217,7 @@ jobs:
name: installer-osx-${{ matrix.arch }}
path: installer/*.dmg
retention-days: 7
if-no-files-found: 'error'

clean_artifacts:
runs-on: windows-latest
Expand All @@ -234,7 +227,6 @@ jobs:
- uses: geekyeggo/delete-artifact@v5
with:
name: |
SQLSchemaCompare
publish-win
publish-linux
publish-osx-x64
Expand Down Expand Up @@ -275,3 +267,4 @@ jobs:
name: docker
path: /tmp/docker.tar
retention-days: 7
if-no-files-found: 'error'
12 changes: 3 additions & 9 deletions SQLSchemaCompare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@
"filter": [
"**/*"
]
},
{
"from": "../",
"filter": [
"LICENSE"
]
}
],
"directories": {
Expand All @@ -108,9 +102,9 @@
"prebuild-vs": "yarn lint-vs",
"build-vs": "tsc --build",
"start": "electron .",
"dist-win-x64": "electron-builder --win --publish always",
"dist-linux-x64": "electron-builder --linux --publish always",
"dist-osx": "electron-builder --mac --publish always"
"dist-win-x64": "yarn build && electron-builder --win --publish always",
"dist-linux-x64": "yarn build && electron-builder --linux --publish always",
"dist-osx": "yarn build && electron-builder --mac --publish always"
},
"postinstall": "electron-builder install-app-deps",
"devDependencies": {
Expand Down
Loading