Skip to content

Commit

Permalink
Add Temp Post Release workflow (#109)
Browse files Browse the repository at this point in the history
* Allow running individual release jobs

* Add type choice

* Add Temp Post Release workflow and revert release.yml changes
  • Loading branch information
tdchow authored Jul 10, 2024
1 parent bbfb9fc commit ef881e3
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/temp_post_release.yml
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

0 comments on commit ef881e3

Please sign in to comment.