Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 1.55 KB

README.md

File metadata and controls

82 lines (61 loc) · 1.55 KB

Upload TestFlight Release Notes

About

This GitHub Action allows you to upload Release Notes to a particular build on TestFlight

Example

name: Example Workflow

on: [push]

jobs:
  example_job:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v3
      
      - name: Upload Release Notes to TestFlight
        uses: nthState/UploadTestFlightReleaseNotes
        with:
          ISSUER_ID: ${{ secrets.APPCONNECT_API_ISSUER }}
          KEY_ID: ${{ secrets.APPCONNECT_API_KEY_ID }}
          PRIVATE_KEY: ${{ secrets.APPCONNECT_API_KEY_PRIVATE }}
          APP_ID: id of the app
          WHATS_NEW: "detail item that has changed"
          BUILD_NUMBER: the build number you want to change

Testing

Docker

Build the docker

docker build . -t githubactiontest -f Dockerfile

Run the docker

docker run \
-e ISSUER_ID=appstore connect api issuer id \
-e KEY_ID=appstore connect api key id \
-e PRIVATE_KEY=appstore connect api private key  \
-e APP_ID=app id \
-e WHATS_NEW="Your update text, max 4000 chars" \
-e BUILD_NUMBER= your build number \
-d githubactiontest

Build

Generating the requirements.txt

Create a virtual env

cd /tmp
mkdir api_venv 
cd api_venv/                                             
python3.10 -m venv venv
cd venv/bin
source activate

Then install the libraries

pip3 install cryptography                                
pip3 install requests
pip3 install pyjwt

Export the requirements

pip3 freeze > requirements.txt