From 55c85f71a41c9c50715e6102999cf602895bf4ba Mon Sep 17 00:00:00 2001 From: Curtly Critchlow Date: Thu, 12 Dec 2024 09:43:53 -0400 Subject: [PATCH 1/2] chore: initial msix automation. --- .github/workflows/app_build.yaml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/app_build.yaml diff --git a/.github/workflows/app_build.yaml b/.github/workflows/app_build.yaml new file mode 100644 index 000000000..9a9be926a --- /dev/null +++ b/.github/workflows/app_build.yaml @@ -0,0 +1,42 @@ +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 + + - 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 + + - name: Upload msix Artifact + uses: actions/upload-artifact@v4.4.3 + with: + name: noPorts-Desktop-msix + path: + if-no-files-found: error + overwrite: true + + - name: Download msix Artifact + uses: actions/download-artifact@v4.1.8 + with: + name: noPorts-Desktop-msix + path: $GITHUB_WORKSPACE/noports_desktop/ From c9df0a8d7214a5eca5560b6e8eb4a6ba3edd7aeb Mon Sep 17 00:00:00 2001 From: Curtly Critchlow Date: Mon, 16 Dec 2024 09:42:58 -0400 Subject: [PATCH 2/2] chore: npt_flutter msix release added. --- .github/workflows/app_build.yaml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/app_build.yaml b/.github/workflows/app_build.yaml index 9a9be926a..a68905d3a 100644 --- a/.github/workflows/app_build.yaml +++ b/.github/workflows/app_build.yaml @@ -27,16 +27,23 @@ jobs: sdk: stable - run: dart run msix:create - - name: Upload msix Artifact - uses: actions/upload-artifact@v4.4.3 + - name: Create Github Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ github.token }} with: - name: noPorts-Desktop-msix - path: - if-no-files-found: error - overwrite: true + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false - - name: Download msix Artifact - uses: actions/download-artifact@v4.1.8 + - name: Upload msix Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} with: - name: noPorts-Desktop-msix - path: $GITHUB_WORKSPACE/noports_desktop/ + 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