feat: add trip deletion and adjust CI/CD workflows for luggage-list
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Build App
|
||||
name: Luggage List Build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -49,13 +49,13 @@ jobs:
|
||||
--profile=preview
|
||||
|
||||
- name: 📝 Rename build to APK
|
||||
run: mv app-build app-release.apk
|
||||
run: mv app-build luggage-list-release.apk
|
||||
|
||||
- name: 📤 Upload build artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: android-preview-build
|
||||
path: app-release.apk
|
||||
name: luggage-list-android-preview-build
|
||||
path: luggage-list-release.apk
|
||||
if-no-files-found: error
|
||||
|
||||
build-web:
|
||||
@@ -88,13 +88,13 @@ jobs:
|
||||
run: npx expo export --platform web
|
||||
|
||||
- name: 📦 Zip dist
|
||||
run: cd dist && zip -r ../dist.zip .
|
||||
run: cd dist && zip -r ../luggage-list-dist.zip .
|
||||
|
||||
- name: 📤 Upload build artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: web-build
|
||||
path: dist.zip
|
||||
name: luggage-list-web-build
|
||||
path: luggage-list-dist.zip
|
||||
if-no-files-found: error
|
||||
|
||||
release:
|
||||
@@ -107,16 +107,16 @@ jobs:
|
||||
- name: 📥 Download Android artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: android-preview-build
|
||||
name: luggage-list-android-preview-build
|
||||
|
||||
- name: 📥 Download Web artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: web-build
|
||||
name: luggage-list-web-build
|
||||
|
||||
- name: 🏷 Create tag
|
||||
run: |
|
||||
TAG="build-$(git rev-parse --short HEAD)"
|
||||
TAG="luggage-list-build-$(git rev-parse --short HEAD)"
|
||||
git tag "$TAG"
|
||||
git push origin "$TAG"
|
||||
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
|
||||
@@ -127,8 +127,8 @@ jobs:
|
||||
tag_name: ${{ env.RELEASE_TAG }}
|
||||
name: ${{ env.RELEASE_TAG }}
|
||||
files: |
|
||||
app-release.apk
|
||||
dist.zip
|
||||
luggage-list-release.apk
|
||||
luggage-list-dist.zip
|
||||
generate_release_notes: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user