Skip to content

Instantly share code, notes, and snippets.

@timers-ios
Last active May 13, 2019 07:41
Show Gist options
  • Save timers-ios/94d22b5803cebe864ea714071123d8cc to your computer and use it in GitHub Desktop.
Save timers-ios/94d22b5803cebe864ea714071123d8cc to your computer and use it in GitHub Desktop.
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- tag: "*"
workflow: release_note
workflows:
release_note:
steps:
- activate-ssh-key: {}
- git-clone: {}
- script:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
BEFORE=`git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1)`
LATEST=`git describe --abbrev=0 --tags $(git rev-list --tags --skip=0 --max-count=1)`
COMPARE_URL="https://github.com/YYYY/XXXXX/compare/${BEFORE}...${LATEST}"
envman add --key COMPARE_URL --value $COMPARE_URL
title: Set compare URL
- generate-changelog: {}
- github-release:
inputs:
- username: "$GITHUB_USER_NAME"
- name: "$BITRISE_GIT_TAG"
- draft: 'no'
- body: |-
$COMPARE_URL
$BITRISE_CHANGELOG
- api_token: "$GITHUB_ACCESS_TOKEN"
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: XXXX.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: XXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment