Skip to content

Instantly share code, notes, and snippets.

@godrei
Last active June 18, 2019 07:00
Show Gist options
  • Save godrei/910e0b778630ab302b9c7823d0c62d56 to your computer and use it in GitHub Desktop.
Save godrei/910e0b778630ab302b9c7823d0c62d56 to your computer and use it in GitHub Desktop.
format_version: "8"
recipes:
archive_and_export_ipas:
inputs:
- EXPORT_METHOD
steps:
- xcode-archive:
inputs:
- export_method: $EXPORT_METHOD[0]
- export_ipa:
run_if: "{{ len .EXPORT_METHOD | greater 1 }}"
inputs:
- export_method: $EXPORT_METHOD[1:]
github_release_with_changelog:
- generate-changelog@0.9.0: {}
- github-release@0.9.3:
inputs:
- draft: 'no'
- name: "${BITRISE_GIT_TAG}"
- api_token: "${GIT_BOT_USER_ACCESS_TOKEN}"
- username: "${GIT_BOT_USER_NAME}"
- files_to_upload: "$EXPORT_BINARIES"
- body: |-
### Release Notes
$BITRISE_CHANGELOG
### Install or upgrade
To install this version, run the following commands (in a bash shell):
```
curl -fL https://github.com/bitrise-io/${TOOL_ID}/releases/download/${BITRISE_GIT_TAG}/${TOOL_ID}-${DOLLAR}(uname -s)-${DOLLAR}(uname -m) > /usr/local/bin/${TOOL_ID}
```
Then:
```
chmod +x /usr/local/bin/${TOOL_ID}
```
That's all, you're ready to call `${TOOL_ID}`!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment