Browse Source

Remove no longer used .github workflows

pull/98/head
James Mills 4 months ago
parent
commit
6587561cc6
Signed by: prologic GPG Key ID: AC4C014F1440EBD6
  1. 37
      .github/ISSUE_TEMPLATE/bug_report.md
  2. 20
      .github/ISSUE_TEMPLATE/feature_request.md
  3. 15
      .github/scripts/import-certificate.sh
  4. 6
      .github/scripts/import-profile.sh
  5. 8
      .github/scripts/set-env-from-xcodeproj.sh
  6. 65
      .github/workflows/deploy.yml
  7. 16
      .github/workflows/review.yml
  8. 96
      .github/workflows/shipit.yml

37
.github/ISSUE_TEMPLATE/bug_report.md

@ -1,37 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 1.0.0]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 1.0.0]
**Additional context**
Add any other context about the problem here.

20
.github/ISSUE_TEMPLATE/feature_request.md

@ -1,20 +0,0 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

15
.github/scripts/import-certificate.sh

@ -1,15 +0,0 @@
#!/bin/bash
set -euo pipefail
security create-keychain -p "" build.keychain
security list-keychains -s build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security set-keychain-settings
security import <(echo $IOS_SIGNING_CERTIFICATE_P12_DATA | base64 --decode) \
-f pkcs12 \
-k build.keychain \
-P $IOS_SIGNING_CERTIFICATE_PASSWORD \
-T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain

6
.github/scripts/import-profile.sh

@ -1,6 +0,0 @@
#!/bin/bash
set -euo pipefail
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
echo "$IOS_PROVISIONING_PROFILE_DATA" | base64 --decode > ~/Library/MobileDevice/Provisioning\ Profiles/profile.mobileprovision

8
.github/scripts/set-env-from-xcodeproj.sh

@ -1,8 +0,0 @@
#!/bin/bash
set -euo pipefail
cd ios
SCHEME="$(xcodebuild -list -json | jq -r '.project.schemes[0]')"
PRODUCT_NAME="$(xcodebuild -scheme "$SCHEME" -showBuildSettings | grep " PRODUCT_NAME " | sed "s/[ ]*PRODUCT_NAME = //")"
echo "::set-env name=PRODUCT_NAME::$PRODUCT_NAME"

65
.github/workflows/deploy.yml

@ -1,65 +0,0 @@
name: deploy
on:
push:
branches: [ master ]
tags: [ v* ]
jobs:
deploy:
runs-on: macos-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Set environment variables from project settings
run: |
exec .github/scripts/set-env-from-xcodeproj.sh
- name: Import signing certificate
env:
IOS_SIGNING_CERTIFICATE_P12_DATA: ${{ secrets.IOS_SIGNING_CERTIFICATE_P12_DATA }}
IOS_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.IOS_SIGNING_CERTIFICATE_PASSWORD }}
run: |
exec .github/scripts/import-certificate.sh
- name: Import provisioning profile
env:
IOS_PROVISIONING_PROFILE_DATA: ${{ secrets.IOS_PROVISIONING_PROFILE_DATA }}
run: |
exec .github/scripts/import-profile.sh
- name: Install Flutter
uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build ios --release --no-codesign
- name: Build app
run: |
cd ios
fastlane run build_app
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build.log
path: ~/Library/Logs/gym/*.log
- name: Upload release assets
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.PRODUCT_NAME }}.ipa
${{ env.PRODUCT_NAME }}.app.dSYM.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload app to App Store Connect
if: startsWith(github.ref, 'refs/tags/v')
env:
APP_STORE_CONNECT_USERNAME: ${{ secrets.APP_STORE_CONNECT_USERNAME }}
APP_STORE_CONNECT_PASSWORD: ${{ secrets.APP_STORE_CONNECT_PASSWORD }}
run: |
xcrun altool --upload-app -t ios -f "$PRODUCT_NAME.ipa" -u "$APP_STORE_CONNECT_USERNAME" -p "$APP_STORE_CONNECT_PASSWORD"

16
.github/workflows/review.yml

@ -1,16 +0,0 @@
---
name: Review
on:
push:
branches:
- master
pull_request:
jobs:
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

96
.github/workflows/shipit.yml

@ -1,96 +0,0 @@
name: shipit
on:
release:
types:
- "published"
- "edited"
- "prereleased"
push:
branches:
- "master"
- "actions/release-android__*"
paths:
- "pubspec.yaml"
- "android/**"
- "lib/**"
- ".github/workflows/shipit.yml"
jobs:
release-android:
name: release android app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.23.0-7.0.pre'
channel: 'dev'
- name: Install gem packages
run: |
cd android
gem install bundler:1.17.3
bundle install
bundle exec fastlane install_plugins
bundle exec fastlane update_plugins
- name: Build apk and app bundle package
env:
ANDROID_KEY_PWD: ${{ secrets.ANDROID_KEY_PWD }}
ANDROID_KEY_STORE_PWD: ${{ secrets.ANDROID_KEY_STORE_PWD }}
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
RELEASE_SERVICE_ACCOUNT_KEYSTORE: ${{ secrets.RELEASE_SERVICE_ACCOUNT_KEYSTORE }}
run: |
./scripts/setenv.sh
flutter pub get
flutter build appbundle
- name: Upload app to Google Play Store
env:
ANDROID_KEY_PWD: ${{ secrets.ANDROID_KEY_PWD }}
ANDROID_KEY_STORE_PWD: ${{ secrets.ANDROID_KEY_STORE_PWD }}
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
RELEASE_SERVICE_ACCOUNT_KEYSTORE: ${{ secrets.RELEASE_SERVICE_ACCOUNT_KEYSTORE }}
run: |
./scripts/setenv.sh
cd android/
bundle exec fastlane internal
- name: Promote to alpha
env:
ANDROID_KEY_PWD: ${{ secrets.ANDROID_KEY_PWD }}
ANDROID_KEY_STORE_PWD: ${{ secrets.ANDROID_KEY_STORE_PWD }}
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
RELEASE_SERVICE_ACCOUNT_KEYSTORE: ${{ secrets.RELEASE_SERVICE_ACCOUNT_KEYSTORE }}
run: |
./scripts/setenv.sh
cd android/
bundle exec fastlane alpha
- name: Promote to beta
if: contains(github.event_name,'release')
env:
ANDROID_KEY_PWD: ${{ secrets.ANDROID_KEY_PWD }}
ANDROID_KEY_STORE_PWD: ${{ secrets.ANDROID_KEY_STORE_PWD }}
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
RELEASE_SERVICE_ACCOUNT_KEYSTORE: ${{ secrets.RELEASE_SERVICE_ACCOUNT_KEYSTORE }}
run: |
./scripts/setenv.sh
cd android/
bundle exec fastlane beta
- name: Promote to production
if: contains(github.event_name,'release')&&(!github.event.release.prerelease)
env:
ANDROID_KEY_PWD: ${{ secrets.ANDROID_KEY_PWD }}
ANDROID_KEY_STORE_PWD: ${{ secrets.ANDROID_KEY_STORE_PWD }}
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
RELEASE_SERVICE_ACCOUNT_KEYSTORE: ${{ secrets.RELEASE_SERVICE_ACCOUNT_KEYSTORE }}
run: |
./scripts/setenv.sh
cd android/
bundle exec fastlane production
Loading…
Cancel
Save