Merge pull request #10 from evolvedlight/add-mit-license #62
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Flutter App | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: '3.24.1' | |
- name: Install project dependencies | |
run: flutter config --no-analytics && flutter pub get | |
- name: Enable windows build | |
run: flutter config --enable-windows-desktop | |
- name: Build artifacts | |
run: flutter build windows --release | |
- name: Upload Release Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WorklogAssistant-windows-${{ github.run_number}} | |
path: build/windows/x64/runner/Release | |
- name: Zip files | |
if: startsWith(github.ref, 'refs/tags/') | |
run: Compress-Archive -Path build/windows/x64/runner/Release/* -Destination WorklogAssistant-windows-${{ github.ref_name}}.zip | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
WorklogAssistant-windows-${{ github.ref_name}}.zip | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: "Release ${{ github.ref_name }}" |