Skip to content

distribution

distribution #6

name: Publish release
on:
repository_dispatch:
types: [distribution]
jobs:
extractChangelog:
runs-on: self-hosted
# create release only if the ios app made it to the appstore and ignore the macos appstore state
if: github.event.client_payload.Platform == "iOS"

Check failure on line 9 in .github/workflows/publish-stable-release.yml

View workflow run for this annotation

GitHub Actions / Publish release

Invalid workflow file

The workflow is not valid. .github/workflows/publish-stable-release.yml (Line: 9, Col: 9): Unexpected symbol: '"iOS"'. Located at position 41 within expression: github.event.client_payload.Platform == "iOS"
steps:
- name: Load release info
id: releasenotes
run: |
buildNumber="$(fastlane run app_store_build_number api_key_path:"/Users/ci/appstoreconnect/key.json" team_id:"S8D843U34Y" app_identifier:"G7YU7X7KRJ.SworIM" live:false version:"${{ github.event.client_payload.AppVersionNumber }}" 2>&1 | tee /dev/stderr | grep Result | sed -E 's/^.*Result: ([0-9]+).*$/\1/g')"
mkdir -p /Users/ci/releases
OUTPUT_FILE="/Users/ci/releases/$buildNumber.output"
touch "$OUTPUT_FILE"
cat "$OUTPUT_FILE" >> "$GITHUB_OUTPUT"
# - run: |
# echo ${{ github.event.client_payload.AppName }}
# echo ${{ github.event.client_payload.Platform }}
# echo ${{ github.event.client_payload.AppVersionNumber }}
- name: Promote draft release to live release
uses: softprops/action-gh-release@v2
with:
tag_name: "${{ steps.releasenotes.outputs.tag }}"
target_commitish: stable
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
make_latest: true