-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Temp Post Release workflow (#109)
* Allow running individual release jobs * Add type choice * Add Temp Post Release workflow and revert release.yml changes
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
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 |