-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b21b0dd
Showing
98 changed files
with
8,364 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
name: Build and release | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- v* | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup Flutter | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: "3.16.8" | ||
channel: "stable" | ||
cache: true | ||
|
||
- name: Bootstrap | ||
run: sudo apt-get update -y && sudo apt-get install -y ninja-build libgtk-3-dev | ||
|
||
- name: Build | ||
run: ./build.sh | ||
|
||
- name: Move release | ||
run: mkdir release; mv build/linux/x64/release/bundle "release/${{ github.event.repository.name }}" | ||
|
||
- name: Package | ||
run: tar -cf- -C release "${{ github.event.repository.name }}" | xz -c9e - > "${{ github.event.repository.name }}-linux.tar.xz" | ||
|
||
- name: Save | ||
uses: actions/[email protected] | ||
with: | ||
name: release-linux | ||
path: "*.tar.xz" | ||
|
||
build-macos: | ||
runs-on: macos-12 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup Flutter | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: "3.16.8" | ||
channel: "stable" | ||
cache: true | ||
|
||
- name: Build | ||
run: ./build.sh | ||
|
||
- name: Package | ||
run: productbuild --component "build/macos/Build/Products/Release/${{ github.event.repository.name }}.app" /Applications/ ${{ github.event.repository.name }}-macos.pkg | ||
|
||
- name: Save | ||
uses: actions/[email protected] | ||
with: | ||
name: release-macos | ||
path: "*.pkg" | ||
|
||
build-windows: | ||
runs-on: windows-2022 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup Flutter | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: "3.16.8" | ||
channel: "stable" | ||
cache: true | ||
|
||
- name: Build | ||
run: .\build-windows.ps1 | ||
|
||
- name: Move release folder | ||
run: mkdir release; mv build\windows\x64\runner\Release "release\${{ github.event.repository.name }}" | ||
|
||
- name: Archive | ||
run: Compress-Archive -Path "release\${{ github.event.repository.name }}" -DestinationPath "${{ github.event.repository.name }}-windows.zip" | ||
|
||
- name: Save | ||
uses: actions/[email protected] | ||
with: | ||
name: release-windows | ||
path: "*.zip" | ||
|
||
release: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
needs: | ||
- build-linux | ||
- build-macos | ||
- build-windows | ||
|
||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Version | ||
id: version | ||
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Notes | ||
run: grep -Pzom1 "(?s)\n[##\s]*${{ steps.version.outputs.version }}.*?\n+.*?\K.*?(\n\n|$)" CHANGELOG.md | sed 's/[^[:print:]]//g' > RELEASE.md | ||
|
||
- name: Download | ||
uses: actions/[email protected] | ||
with: | ||
path: artifacts | ||
|
||
- name: Rename | ||
run: | | ||
mv artifacts/release-linux/${{ github.event.repository.name }}-linux.tar.xz artifacts/release-linux/${{ github.event.repository.name }}-linux-${{ steps.version.outputs.version }}.tar.xz | ||
mv artifacts/release-macos/${{ github.event.repository.name }}-macos.pkg artifacts/release-macos/${{ github.event.repository.name }}-macos-${{ steps.version.outputs.version }}.pkg | ||
mv artifacts/release-windows/${{ github.event.repository.name }}-windows.zip artifacts/release-windows/${{ github.event.repository.name }}-windows-${{ steps.version.outputs.version }}.zip | ||
- name: Release | ||
uses: softprops/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
artifacts/release-linux/*.tar.xz | ||
artifacts/release-macos/*.pkg | ||
artifacts/release-windows/*.zip | ||
body_path: RELEASE.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.* | ||
!.gitignore | ||
!/.metadata | ||
!/.github/ | ||
|
||
/build/ | ||
*.iml | ||
|
||
*.*.dart | ||
/custom_lint.log | ||
|
||
**/generated_plugin** | ||
/macos/Flutter/GeneratedPluginRegistrant.swift |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: "67457e669f79e9f8d13d7a68fe09775fefbb79f4" | ||
channel: "stable" | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
- platform: linux | ||
create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
- platform: macos | ||
create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
- platform: windows | ||
create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# GrabLog - CHANGELOG | ||
|
||
|
||
## v0.1.0 (March 16, 2024) | ||
|
||
- Initial release |
Oops, something went wrong.