|
| 1 | +name: Temp Post Release |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + version: |
| 6 | + description: 'Version to release' |
| 7 | + required: true |
| 8 | +env: |
| 9 | + SIGNING_KEY_FILE: /home/runner/secretKey.gpg |
| 10 | +jobs: |
| 11 | + bump_version: |
| 12 | + name: Bump Version |
| 13 | + runs-on: ubuntu-latest |
| 14 | + steps: |
| 15 | + - name: Checkout Repository |
| 16 | + uses: actions/checkout@v2 |
| 17 | + - name: Setup Java |
| 18 | + uses: ./.github/actions/setup_java |
| 19 | + - name: Set GitHub User |
| 20 | + run: ./ci set_github_user_to_braintreeps |
| 21 | + - name: Update Version |
| 22 | + run: | |
| 23 | + ./ci publish_dokka_docs |
| 24 | + ./ci update_version ${{ github.event.inputs.version }} |
| 25 | + ./ci commit_and_tag_release ${{ github.event.inputs.version }} |
| 26 | + ./ci increment_snapshot_version ${{ github.event.inputs.version }} |
| 27 | + ./ci increment_demo_app_version_code |
| 28 | +
|
| 29 | + git commit -am 'Prepare for development' |
| 30 | + git push origin main ${{ github.event.inputs.version }} |
| 31 | +
|
| 32 | + create_github_release: |
| 33 | + needs: [ bump_version ] |
| 34 | + name: Create GitHub Release |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - name: Checkout Repository |
| 38 | + uses: actions/checkout@v2 |
| 39 | + - name: Setup Java |
| 40 | + uses: ./.github/actions/setup_java |
| 41 | + - name: Save changelog entries to a file |
| 42 | + run: ./ci get_latest_changelog_entries > changelog_entries.md |
| 43 | + - name: Create GitHub Release |
| 44 | + id: create_release |
| 45 | + uses: actions/create-release@v1 |
| 46 | + env: |
| 47 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 48 | + with: |
| 49 | + tag_name: ${{ github.event.inputs.version }} |
| 50 | + release_name: ${{ github.event.inputs.version }} |
| 51 | + body_path: changelog_entries.md |
| 52 | + draft: false |
| 53 | + prerelease: false |
0 commit comments