Skip to content

Commit

Permalink
Update configs to test
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkoop committed Sep 20, 2023
1 parent b0587ae commit 5a814ff
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 48 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,50 +62,50 @@ jobs:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}

release_finished:
needs: [ publish_browser_switch ]
name: Release Finished
runs-on: ubuntu-latest
steps:
- run: echo "Release finished"

bump_version:
needs: [ release_finished ]
name: Bump Version
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set GitHub User
run: ./ci set_github_user_to_braintreeps
- name: Update Version
run: |
./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 master ${{ 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: 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
# release_finished:
# needs: [ publish_browser_switch ]
# name: Release Finished
# runs-on: ubuntu-latest
# steps:
# - run: echo "Release finished"
#
# bump_version:
# needs: [ release_finished ]
# name: Bump Version
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# - name: Set GitHub User
# run: ./ci set_github_user_to_braintreeps
# - name: Update Version
# run: |
# ./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 master ${{ 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: 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# browser-switch-android Release Notes

## unreleased

* Upgrade publish plugin
*
## 2.6.0

* Upgrade `compileSdkVersion` and `targetSdkVersion` to API 34
Expand Down
2 changes: 1 addition & 1 deletion ci
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ case $command_name in
release_type="$2"
if [ "${release_type}" == "release" ]; then
# publish release
./gradlew --stacktrace clean :browser-switch:publishToSonatype closeAndReleaseSonatypeStagingRepository
./gradlew --stacktrace clean :browser-switch:publishToSonatype
else
# publish SNAPSHOT
./gradlew --stacktrace clean :browser-switch:publishToSonatype
Expand Down

0 comments on commit 5a814ff

Please sign in to comment.