Skip to content

Commit

Permalink
ci: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kosukesaigusa committed Sep 5, 2023
1 parent 8fb0adb commit dccb6cf
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/release_to_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,36 @@ jobs:
- name: Create dev-dart-define.json from GitHub secret
run: cd packages/mottai_flutter_app && echo '${{ secrets.DEV_DART_DEFINE_JSON_STRING }}' > dev-dart-define.json

- name: Decode and install certificate
run: |
echo ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_BASE64_STRING }} | base64 --decode > certificate.p12
security create-keychain -p "" build.keychain
security import certificate.p12 -k build.keychain -P ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_PASSWORD }} -A
- name: Decode and install provisioning profile
run: |
echo ${{ secrets.PROVISIONING_PROFILE_BASE64_STRING }} | base64 --decode > profile.mobileprovision
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp profile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
- name: Set keychain settings
run: |
security list-keychains -s build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security set-keychain-settings -lut 3600 build.keychain
# - name: Decode and install certificate
# run: |
# echo ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_BASE64_STRING }} | base64 --decode > certificate.p12
# security create-keychain -p "" build.keychain
# security import certificate.p12 -k build.keychain -P ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_PASSWORD }} -A

# - name: Decode and install provisioning profile
# run: |
# echo ${{ secrets.PROVISIONING_PROFILE_BASE64_STRING }} | base64 --decode > profile.mobileprovision
# mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
# cp profile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/

# - name: Set Code-Signing Certificates
# uses: Apple-Actions/import-codesign-certs@v1
# with:
# p12-file-base64: ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_BASE64_STRING }}
# p12-password: ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_PASSWORD }}
# - name: Set keychain settings
# run: |
# security list-keychains -s build.keychain
# security default-keychain -s build.keychain
# security unlock-keychain -p "" build.keychain
# security set-keychain-settings -lut 3600 build.keychain

- name: Decode and install provisioning profile
run: |
echo ${{ secrets.PROVISIONING_PROFILE_BASE64_STRING }} | base64 --decode > profile.mobileprovision
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp profile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
- name: Run import-codesign-certs
uses: Apple-Actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_BASE64_STRING }}
p12-password: ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_PASSWORD }}

- name: Create Environment.swift
run: |
Expand Down

0 comments on commit dccb6cf

Please sign in to comment.