|
1 |
| -name: "Build & Release" |
2 |
| -on: |
3 |
| - pull_request: |
4 |
| - branches: |
5 |
| - - main |
6 |
| - - master |
7 |
| - push: |
8 |
| - branches: |
9 |
| - - main |
10 |
| - - master |
| 1 | +# name: "Build & Release" |
| 2 | +# on: |
| 3 | +# pull_request: |
| 4 | +# branches: |
| 5 | +# - main |
| 6 | +# - master |
| 7 | +# push: |
| 8 | +# branches: |
| 9 | +# - main |
| 10 | +# - master |
11 | 11 |
|
12 |
| -permissions: |
13 |
| - contents: write |
| 12 | +# permissions: |
| 13 | +# contents: write |
14 | 14 |
|
15 |
| -jobs: |
16 |
| - build: |
17 |
| - name: Build & Release |
18 |
| - runs-on: macos-latest |
19 |
| - env: |
20 |
| - API_KEY: ${{ secrets.API_KEY }} |
21 |
| - CONTEXT_KEY: ${{ secrets.CONTEXT_KEY }} |
| 15 | +# jobs: |
| 16 | +# build: |
| 17 | +# name: Build & Release |
| 18 | +# runs-on: macos-latest |
| 19 | +# env: |
| 20 | +# API_KEY: ${{ secrets.API_KEY }} |
| 21 | +# CONTEXT_KEY: ${{ secrets.CONTEXT_KEY }} |
22 | 22 |
|
23 |
| - steps: |
24 |
| - - uses: actions/checkout@v4 |
25 |
| - with: |
26 |
| - token: ${{ secrets.GITHUB_TOKEN }} |
27 |
| - fetch-depth: 0 |
| 23 | +# steps: |
| 24 | +# - uses: actions/checkout@v4 |
| 25 | +# with: |
| 26 | +# token: ${{ secrets.GITHUB_TOKEN }} |
| 27 | +# fetch-depth: 0 |
28 | 28 |
|
29 |
| - - name: Set up Java 17 |
30 |
| - uses: actions/setup-java@v2 |
31 |
| - with: |
32 |
| - java-version: "17.x" |
33 |
| - java-package: jdk |
34 |
| - architecture: x64 |
35 |
| - check-latest: false |
36 |
| - server-id: github |
37 |
| - server-username: ${{ github.actor }} |
38 |
| - server-password: ${{ secrets.GITHUB_TOKEN }} |
39 |
| - overwrite-settings: true |
40 |
| - job-status: success |
41 |
| - distribution: "temurin" |
| 29 | +# - name: Set up Java 17 |
| 30 | +# uses: actions/setup-java@v2 |
| 31 | +# with: |
| 32 | +# java-version: "17.x" |
| 33 | +# java-package: jdk |
| 34 | +# architecture: x64 |
| 35 | +# check-latest: false |
| 36 | +# server-id: github |
| 37 | +# server-username: ${{ github.actor }} |
| 38 | +# server-password: ${{ secrets.GITHUB_TOKEN }} |
| 39 | +# overwrite-settings: true |
| 40 | +# job-status: success |
| 41 | +# distribution: "temurin" |
42 | 42 |
|
43 |
| - - name: Create env file |
44 |
| - run: | |
45 |
| - mkdir -p config |
46 |
| - echo "API_KEY=$API_KEY" > config/api_keys.env |
47 |
| - echo "CONTEXT_KEY=$CONTEXT_KEY" >> config/api_keys.env |
| 43 | +# - name: Create env file |
| 44 | +# run: | |
| 45 | +# mkdir -p config |
| 46 | +# echo "API_KEY=$API_KEY" > config/api_keys.env |
| 47 | +# echo "CONTEXT_KEY=$CONTEXT_KEY" >> config/api_keys.env |
48 | 48 |
|
49 |
| - - name: Set up Flutter |
50 |
| - uses: subosito/flutter-action@v2 |
51 |
| - with: |
52 |
| - channel: "stable" |
53 |
| - architecture: x64 |
| 49 | +# - name: Set up Flutter |
| 50 | +# uses: subosito/flutter-action@v2 |
| 51 | +# with: |
| 52 | +# channel: "stable" |
| 53 | +# architecture: x64 |
54 | 54 |
|
55 |
| - - name: build apk |
56 |
| - run: flutter build apk --release --split-per-abi |
| 55 | +# - name: build apk |
| 56 | +# run: flutter build apk --release --split-per-abi |
57 | 57 |
|
58 |
| - - name: build ios |
59 |
| - run: | |
60 |
| - flutter build ios --no-codesign |
61 |
| - cd build/ios/iphoneos |
62 |
| - mkdir Payload |
63 |
| - cd Payload |
64 |
| - ln -s ../Runner.app |
65 |
| - cd .. |
66 |
| - zip -r app.ipa Payload |
| 58 | +# - name: build ios |
| 59 | +# run: | |
| 60 | +# flutter build ios --no-codesign |
| 61 | +# cd build/ios/iphoneos |
| 62 | +# mkdir Payload |
| 63 | +# cd Payload |
| 64 | +# ln -s ../Runner.app |
| 65 | +# cd .. |
| 66 | +# zip -r app.ipa Payload |
67 | 67 |
|
68 |
| - - name: Push to Releases |
69 |
| - uses: ncipollo/release-action@v1 |
70 |
| - with: |
71 |
| - artifacts: "build/app/outputs/apk/release/*,build/ios/iphoneos/app.ipa" |
72 |
| - tag: v1.0.${{ github.run_number }} |
73 |
| - token: ${{ secrets.GITHUB_TOKEN }} |
| 68 | +# - name: Push to Releases |
| 69 | +# uses: ncipollo/release-action@v1 |
| 70 | +# with: |
| 71 | +# artifacts: "build/app/outputs/apk/release/*,build/ios/iphoneos/app.ipa" |
| 72 | +# tag: v1.0.${{ github.run_number }} |
| 73 | +# token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments