Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joaojsrbr committed Aug 2, 2022
1 parent 90aeea5 commit 0fde945
Showing 1 changed file with 64 additions and 59 deletions.
123 changes: 64 additions & 59 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,68 @@
# # on:
# # pull_request:
# # types: [closed]
# # push:
# # branches:
# # - get-master
# on:
# pull_request:
# types: [closed]
# push:
# pull_request_target:
# branches:
# - get-master
on:
pull_request_target:
branches:
- main
types:
- closed
tags:
- v*
# - main
# types:
# - closed
# tags:
# - v*

name: "Build & Release"
# name: "Build & Release"

jobs:
if_merged:
if: github.event.pull_request.merged == true
name: Build & Release
runs-on: ubuntu-latest
env:
JAVA_VERSION: "11.0"
FLUTTER_VERSION: "3.0.4"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{env.JAVA_VERSION}}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{env.FLUTTER_VERSION}}
- run: flutter pub get
- run: flutter analyze
- run: flutter build apk --release
- run: flutter build apk --split-per-abi --release
- run: flutter build web --release --base-href="/AniList-jsr/"
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/*.apk"
tag: v0.0.${{ github.run_number }}-b1
token: ${{ secrets.TOKEN }}
# - name: Build Web
# run: |
# cd build/web
# git init -b origin
# git config --global user.email [email protected]
# git config --global user.name joaojsrbr
# git status
# git remote add origin https://${{secrets.TOKEN}}@github.com/joaojsrbr/AniList-jsr.git
# git checkout -b gh-pages
# # git pull origin gh-pages
# git add .
# git commit -m "update"
# git push origin gh-pages -f
# - name: Telegram<apk>
# uses: appleboy/telegram-action@master
# with:
# to: ${{ secrets.TELEGRAM_TO }}
# token: ${{ secrets.TELEGRAM_TOKEN }}
# document: build/app/outputs/flutter-apk/*.apk
# jobs:
# if_merged:
# if: github.event.pull_request.merged == true
# name: Build & Release
# runs-on: ubuntu-latest
# env:
# JAVA_VERSION: "11.0"
# FLUTTER_VERSION: "3.0.4"
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-java@v1
# with:
# java-version: ${{env.JAVA_VERSION}}
# - uses: subosito/flutter-action@v2
# with:
# flutter-version: ${{env.FLUTTER_VERSION}}
# - run: flutter pub get
# - run: flutter analyze
# - run: flutter build apk --release
# - run: flutter build apk --split-per-abi --release
# - run: flutter build web --release --base-href="/AniList-jsr/"
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: "${{ secrets.TOKEN }}"
# firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_MY_PROJECT_ID }}"
# projectId: MY_PROJECT_ID
# - name: Push to Releases
# uses: ncipollo/release-action@v1
# with:
# artifacts: "build/app/outputs/flutter-apk/*.apk"
# tag: v0.0.${{ github.run_number }}
# token: ${{ secrets.TOKEN }}
# # - name: Build Web
# # run: |
# # cd build/web
# # git init -b origin
# # git config --global user.email [email protected]
# # git config --global user.name joaojsrbr
# # git status
# # git remote add origin https://${{secrets.TOKEN}}@github.com/joaojsrbr/AniList-jsr.git
# # git checkout -b gh-pages
# # # git pull origin gh-pages
# # git add .
# # git commit -m "update"
# # git push origin gh-pages -f
# # - name: Telegram<apk>
# # uses: appleboy/telegram-action@master
# # with:
# # to: ${{ secrets.TELEGRAM_TO }}
# # token: ${{ secrets.TELEGRAM_TOKEN }}
# # document: build/app/outputs/flutter-apk/*.apk

0 comments on commit 0fde945

Please sign in to comment.