diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..f6119c6 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build APK + +on: + push: + branches: [main] + +jobs: + build: + name: Build release APK + runs-on: ubuntu-latest + container: + image: ghcr.io/cirruslabs/flutter:stable + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: flutter pub get + + - name: Build release APK + run: flutter build apk --release + + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: fabledapp-${{ github.sha }} + path: build/app/outputs/flutter-apk/app-release.apk + retention-days: 30 diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..d334453 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + pull_request: + +jobs: + analyze: + name: Analyze & test + runs-on: ubuntu-latest + container: + image: ghcr.io/cirruslabs/flutter:stable + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: flutter pub get + + - name: Analyze + run: flutter analyze + + - name: Test + run: flutter test