mobile_nebula/.github/workflows/release.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.2 KiB
YAML
Raw Normal View History

2022-08-12 21:16:34 +00:00
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:
2022-08-12 21:33:05 +00:00
- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.18
2022-08-12 21:16:34 +00:00
- 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: |
2022-08-12 21:33:05 +00:00
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
2022-08-12 21:16:34 +00:00
#BUILD=${GITHUB_REF#refs/tags/v}
BUILD="0.0.99+10"
2022-08-12 21:26:33 +00:00
echo "BUILD_NAME=${BUILD%+*}" >> $GITHUB_ENV
echo "BUILD_NUMBER=${BUILD##*+}" >> $GITHUB_ENV
2022-08-12 21:33:05 +00:00
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 }}
2022-08-12 21:16:34 +00:00
- name: build ios
run: flutter build ipa --build-name "$BUILD_NAME" --build-number "$BUILD_NUMBER"