revert: back to CI artifacts, remove all release/tag experiments
This commit is contained in:
+24
-3
@@ -5,7 +5,7 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
test-and-package:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -22,9 +22,26 @@ jobs:
|
||||
- name: Run tests
|
||||
run: python -m pytest tests/ -v
|
||||
|
||||
- name: Package artifact
|
||||
run: |
|
||||
zip -r meal-tracker.zip . \
|
||||
-x ".git/*" \
|
||||
-x ".gitea/*" \
|
||||
-x ".env" \
|
||||
-x "docker-compose.yml" \
|
||||
-x ".pytest_cache/*" \
|
||||
-x "__pycache__/*" \
|
||||
-x "meals.db"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: meal-tracker
|
||||
path: meal-tracker.zip
|
||||
|
||||
build-android:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
needs: test-and-package
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -62,4 +79,8 @@ jobs:
|
||||
.gradle-home/gradle-8.7/bin/gradle wrapper --gradle-version 8.7 --no-daemon
|
||||
./gradlew assembleDebug --no-daemon
|
||||
|
||||
echo "APK built: $(du -h app/build/outputs/apk/debug/app-debug.apk | cut -f1)"
|
||||
- name: Upload APK artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: meal-tracker-apk
|
||||
path: android/app/build/outputs/apk/debug/*.apk
|
||||
|
||||
Reference in New Issue
Block a user