Skip to content

Commit

Permalink
chore: Initialize release version 1.0.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
- The authentication system has been completely redesigned, requiring users to reset their passwords. Please follow the password reset instructions in the updated documentation.

- Added core functionality for the application.
- Created initial database schema.
- Updated project documentation.
  • Loading branch information
Emon526 committed Jun 29, 2023
1 parent 799d075 commit 0fb96d7
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Releases

on:
push:
branches:
- master

env:
FLUTTER_VERSION: 3.10.5
# LINUX_DEPENDENCIES: git wget unzip python3 zip xz-utils curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libjsoncpp25 libsecret-1-dev libsecret-1-0 librhash0 libsqlite3-dev libappindicator3-dev gettext libwebkit2gtk-4.1-dev

jobs:
build-cross-platform-and-release:
runs-on: macos-latest

steps:

- name: Set up Checkout
uses: actions/checkout@v3

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 11

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
channel: "stable"

- name: Cache
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ runner.os }}-flutter-

- name: Get Dependency
run: |
flutter pub get
# flutter pub deps
# - name: Run build_runner
# run: flutter pub run build_runner build

- name: Build Android
run: |
# flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
flutter build apk --release
# - name: Build iOS
# run: |
# flutter build ios --release --no-codesign
# cd build/ios/iphoneos
# mkdir Payload
# cd Payload
# ln -s ../Runner.app
# cd ..
# zip -r app.ipa Payload

- name: Generate Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Release to Github
uses: softprops/action-gh-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
files: |
build/app/outputs/flutter-apk/*.apk
# build/ios/iphoneos/app.ipa
# build/macos/Build/Products/Release/yoyo.mac.zip
# yy-linux-x86_64.tar.gz
# yy-windows.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0fb96d7

Please sign in to comment.