Skip to content

Ensure history doesn't become unreadable when an invalid card is read #49

Ensure history doesn't become unreadable when an invalid card is read

Ensure history doesn't become unreadable when an invalid card is read #49

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build Android App
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- run: .flutter/bin/flutter pub get
#- run: flutter test
- run: .flutter/bin/flutter build apk --debug --verbose
- uses: actions/upload-artifact@v4
with:
name: apk-debug
path: build/app/outputs/apk/debug/app-debug.apk
- name: Create Release
id: create_release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: build/app/outputs/apk/debug/app-debug.apk
asset_name: nfsee-android-debug.apk
asset_content_type: application/vnd.android.package-archive