Temp Post Release #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Temp Post Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to release' | |
required: true | |
env: | |
SIGNING_KEY_FILE: /home/runner/secretKey.gpg | |
jobs: | |
bump_version: | |
name: Bump Version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Java | |
uses: ./.github/actions/setup_java | |
- name: Set GitHub User | |
run: ./ci set_github_user_to_braintreeps | |
- name: Update Version | |
run: | | |
./ci publish_dokka_docs | |
./ci update_version ${{ github.event.inputs.version }} | |
./ci commit_and_tag_release ${{ github.event.inputs.version }} | |
./ci increment_snapshot_version ${{ github.event.inputs.version }} | |
./ci increment_demo_app_version_code | |
git commit -am 'Prepare for development' | |
git push origin main ${{ github.event.inputs.version }} | |
create_github_release: | |
needs: [ bump_version ] | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Java | |
uses: ./.github/actions/setup_java | |
- name: Save changelog entries to a file | |
run: ./ci get_latest_changelog_entries > changelog_entries.md | |
- name: Create GitHub Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.event.inputs.version }} | |
release_name: ${{ github.event.inputs.version }} | |
body_path: changelog_entries.md | |
draft: false | |
prerelease: false |