Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add artifacts to main build action #181

Merged
merged 4 commits into from
Feb 5, 2022
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
96 changes: 96 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,30 @@ jobs:

- name: Flutter build app
run: flutter build linux


- name: Compress artifacts
uses: TheDoctor0/zip-release@0.4.1
with:
filename: linux-dev.zip

- name: Build AppImage
uses: AppImageCrafters/build-appimage@master
with:
recipe: "AppImageBuilder.yml"

- name: Upload Build AppImage
uses: actions/upload-artifact@v2.3.1
with:
name: sidekick-linux-dev.AppImage
path: Sidekick-latest-x86_64.AppImage

- name: Upload Build Zip
uses: actions/upload-artifact@v2.3.1
with:
name: sidekick-linux-dev.zip
path: linux-dev.zip

build-macos:
name: "Build MacOS"
runs-on: macos-latest
Expand Down Expand Up @@ -60,6 +84,29 @@ jobs:
- name: Flutter build app
run: flutter build macos

- name: Install create-dmg
run: brew install create-dmg

- name: Create dmg
run: |
./scripts/create_mac_dmg.sh

- name: Compress artifacts
run: zip -r macos-dev.zip build/macos/Build/Products/Release

- name: Upload Build DMG
uses: actions/upload-artifact@v2.3.1
with:
name: sidekick-macos-dev.dmg
path: build/macos/Build/Products/Release/Sidekick.dmg

- name: Upload Build Zip
uses: actions/upload-artifact@v2.3.1
with:
name: sidekick-macos-dev.zip
path: macos-dev.zip


build-windows:
name: "Build Windows"
runs-on: windows-latest
Expand All @@ -81,5 +128,54 @@ jobs:
- name: Analyze
run: flutter analyze

- name: Write MSIX
uses: DamianReeves/write-file-action@v1.0
with:
path: pubspec.yaml
contents: |
msix_config:
display_name: Sidekick DEV Build
publisher_display_name: Eduardo M.
identity_name: 44484EduardoM.SidekickFlutter
publisher: CN=1E781C91-227E-4505-B5B8-7E5EFE39D3A6
msix_version: 1.0.0.0
logo_path: .\macos\Runner\Assets.xcassets\AppIcon.appiconset\app_icon_128.png
start_menu_icon_path: .\macos\Runner\Assets.xcassets\AppIcon.appiconset\app_icon_128.png
tile_icon_path: .\macos\Runner\Assets.xcassets\AppIcon.appiconset\app_icon_128.png
icons_background_color: transparent
architecture: x64
capabilities: "internetClient,removableStorage"
certificate_path: windows\SIDEKICK-CERT.pfx
certificate_password: ${{ secrets.WIN_CERT_PASS }}
store: false
write-mode: append

- name: Write MS Store
uses: DamianReeves/write-file-action@v1.0
with:
path: lib/modifiers.dart
contents: |
// Generated file. Do not modify
const isMSStore = false;
write-mode: overwrite

- name: Flutter build app
run: flutter build windows

- name: Create MSIX
run: flutter pub run msix:create

- name: Compress artifacts
run: tar.exe -a -c -f windows-dev.zip build/windows/Runner/release

- name: Upload Build MSIX
uses: actions/upload-artifact@v2.3.1
with:
name: sidekick-windows-dev.msix
path: build/windows/Runner/release/sidekick.msix

- name: Upload Build Zip
uses: actions/upload-artifact@v2.3.1
with:
name: sidekick-windows-dev.zip
path: windows-dev.zip
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ jobs:
path: lib/modifiers.dart
contents: |
// Generated file. Do not modify
const isMSStore = false;
const isMSStore = true;
write-mode: overwrite

- name: Flutter get packages
Expand Down