3
0
Fork 0

Compare commits

...

5 Commits

Author SHA1 Message Date
Nate Brown b36de97fc5 poke 2022-08-15 10:58:47 -05:00
Nate Brown 954bc0cd00
Merge branch 'master' into release 2022-08-12 16:27:02 -05:00
Nate Brown 6fd6ed2971 Poke 2022-08-12 16:26:33 -05:00
Nate Brown ca359b3372 Build/release ios and android 2022-08-12 16:18:46 -05:00
Nate Brown 97620046c4 Build/release ios and android 2022-08-12 16:16:34 -05:00
1 changed files with 45 additions and 0 deletions

45
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Create release and upload to Apple and Google
on:
# push:
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]*'
pull_request:
jobs:
build:
name: Build ios and android package
runs-on: macos-latest
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Install flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '2.8.1'
- name: Check out code
uses: actions/checkout@v2
- name: get build name and number
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
#BUILD=${GITHUB_REF#refs/tags/v}
BUILD="0.0.99+10"
echo "BUILD_NAME=${BUILD%+*}" >> $GITHUB_ENV
echo "BUILD_NUMBER=${BUILD##*+}" >> $GITHUB_ENV
touch env.sh
- name: Import certificates
uses: Apple-Actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
- name: build ios
run: flutter build ipa --build-name "$BUILD_NAME" --build-number "$BUILD_NUMBER"