-
Notifications
You must be signed in to change notification settings - Fork 16
chore: automated noports desktop builds #1626
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
55c85f7
c9df0a8
72264cb
de7aefe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: NoPorts Desktop Builds | ||
|
||
on: | ||
push: | ||
branches: | ||
- trunk | ||
permissions: # added using https://github.com/step-security/secure-repo | ||
contents: read | ||
|
||
jobs: | ||
windows_build: | ||
name: Windows Build | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See some of the other workflows, please use commit SHAs (for all of the uses statements) |
||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
flutter-version-file: "3.24.5" | ||
- run: flutter pub get | ||
|
||
- name: Build msix file with Dart SDK | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: stable | ||
- run: dart run msix:create | ||
Comment on lines
+24
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prefer calling all of the setup environment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You also don't need to setup dart if you've already setup flutter. Dart binary is installed with Flutter. |
||
|
||
- name: Create Github Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload msix Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./packages/dart/npt_flutter/build/x64/runner/release/npt_flutter.msix | ||
asset_name: noPorts-Desktop.msix | ||
asset_content_type: application/vnd.ms-appx |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be on tag
d*.*.*
(d for desktop) & optionally on workflow_dispatch. We shouldn't rebuild the app everytime something is pushed to trunk