Skip to content

Commit

Permalink
Update github workflow for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonp2412 committed Jun 4, 2024
1 parent 37f2f71 commit 8abe292
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
name: Build and Release

on:
release:
types: [created]
name: windows

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Install Flutter
uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
channel: "stable"

- name: Build Windows
run: .\flutter\bin\flutter build windows
- name: Build Windows
run: .\flutter\bin\flutter build windows

- name: Archive Release files
run: |
Compress-Archive -Path ./build/windows/x64/runner/Release/* -DestinationPath ./flexify-windows.zip
- name: Archive Release files
run: |
Compress-Archive -Path ./build/windows/x64/runner/Release/* -DestinationPath ./flexify-windows.zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./flexify-windows.zip
asset_name: flexify-windows.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./flexify-windows.zip
asset_name: flexify-windows.zip
asset_content_type: application/zip

0 comments on commit 8abe292

Please sign in to comment.