-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (81 loc) · 3.33 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Build and Release
on:
release:
types: [created]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: dotnet restore ./src/Tableau.Migration.App.GUI
- name: Build
run: dotnet build ./src/Tableau.Migration.App.GUI --configuration Release --no-restore
- name: Create Releases for Winx64, OSX-x64, OSX-arm64, Linux-x64, Linux-arm64
run: |
./scripts/release.sh
- name: Package up OSX files into .app format
run: |
./scripts/macos.sh --x64 &&
./scripts/macos.sh --arm64
- name: Sign .app
run: |
codesign --deep --force --verify --verbose --sign - ./build/osx_arm64_macapp/TableauMigration.app &&
codesign --deep --force --verify --verbose --sign - ./build/osx_x64_macapp/TableauMigration.app
- name: Create ZIP files
run: |
zip -j TableauMigrationApp_win-x64.zip ./build/win_x64/* &&
pushd . && cd ./build/osx_arm64_macapp/ && zip -r TableauMigrationApp_osx-arm64.zip ./* && mv TableauMigrationApp_osx-arm64.zip ../../ && popd &&
pushd . && cd ./build/osx_x64_macapp/ && zip -r TableauMigrationApp_osx-x64.zip ./* && mv TableauMigrationApp_osx-x64.zip ../../ && popd &&
zip -j TableauMigrationApp_linux-arm64.zip ./build/linux_arm64/* &&
zip -j TableauMigrationApp_linux-x64.zip ./build/linux_x64/*
- name: Upload Release Asset Win-x64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./TableauMigrationApp_win-x64.zip
asset_name: TableauMigrationApp_win-x64.zip
asset_content_type: application/zip
- name: Upload Release Asset OSX-arm64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./TableauMigrationApp_osx-arm64.zip
asset_name: TableauMigrationApp_osx-arm64.zip
asset_content_type: application/zip
- name: Upload Release Asset OSX-x64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./TableauMigrationApp_osx-x64.zip
asset_name: TableauMigrationApp_osx-x64.zip
asset_content_type: application/zip
- name: Upload Release Asset Linux-arm64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./TableauMigrationApp_linux-arm64.zip
asset_name: TableauMigrationApp_linux-arm64.zip
asset_content_type: application/zip
- name: Upload Release Asset Linux-x64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./TableauMigrationApp_linux-x64.zip
asset_name: TableauMigrationApp_linux-x64.zip
asset_content_type: application/zip