Skip to content

Commit

Permalink
update git user for release action
Browse files Browse the repository at this point in the history
see  actions/checkout#13 (comment)

also update the actions to non-deprecated versions
  • Loading branch information
ccutrer committed Oct 12, 2022
1 parent 0ae78f6 commit 781311e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Expand Up @@ -13,10 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11 for Maven Central
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
architecture: x64
server-id: ossrh
Expand All @@ -26,8 +27,8 @@ jobs:
server-password: MAVEN_CENTRAL_TOKEN
- name: Setup git profile
run: |
git config --global user.name github-actions
git config --global user.email github-actions@github.com
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Publish Snapshot to Maven Central
run: mvn deploy -B -Possrh
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/maven.yml
Expand Up @@ -13,10 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
architecture: x64
- name: Build with Maven
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -16,10 +16,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
architecture: x64
server-id: ossrh
Expand All @@ -29,8 +30,8 @@ jobs:
server-password: MAVEN_CENTRAL_TOKEN
- name: Setup git profile
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Maven release
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Possrh
env:
Expand Down
2 changes: 1 addition & 1 deletion RELEASING.md
Expand Up @@ -2,6 +2,6 @@

These actions can only be performed by someone with maintainer level access to the repository.

1. Run the [Stage Release on Master Branch](https://github.com/hap-java/HAP-Java/actions/workflows/release.yml) Action
1. Run the [Stage Release on Master Branch](https://github.com/hap-java/HAP-Java/actions/workflows/release.yml) Action with a version such as `2.0.2`
2. After this completes, find the release on the [Releases page](https://github.com/hap-java/HAP-Java/releases)
3. Edit the release to include the changelog details

0 comments on commit 781311e

Please sign in to comment.