This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from book000/fix/rollbar-code-version
fix: rollbarに報告されるコードバージョンが不適切な問題を修正
- Loading branch information
Showing
3 changed files
with
18 additions
and
35 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 |
---|---|---|
|
@@ -15,7 +15,9 @@ jobs: | |
ref_dev: "dev" | ||
files: | | ||
./target/jdavcspeaker-jar-with-dependencies.jar | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 👉 Release Version | ||
id: version | ||
|
@@ -24,28 +26,38 @@ jobs: | |
github_token: ${{ github.token }} | ||
default_bump: "minor" | ||
custom_release_rules: "breaking:major:💣 Breaking Changes,feat:minor:✨ Features,fix:patch:💣 Bug Fixes,docs:patch:📰 Docs,chore:patch:🎨 Chore,pref:patch:🎈 Performance improvements,refactor:patch:🧹 Refactoring,build:patch:🔍 Build,ci:patch:🔍 CI,revert:patch:⏪ Revert,style:patch:🧹 Style,test:patch:👀 Test" | ||
|
||
- name: 📻 Setup JDK16 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: "zulu" | ||
java-version: ${{ env.jdk }} | ||
|
||
- name: 📦 Checkout ${{ github.repository }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ github.repository }} | ||
token: ${{ github.token }} | ||
|
||
- name: ⌛ Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/caches | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: ✏ Insert Version | ||
run: | | ||
sed -r -i "1,/version/s#<version>(.+?)</version>#<version>${{ steps.version.outputs.new_version }}</version>#" pom.xml | ||
git diff | ||
- name: 📦 Package | ||
env: | ||
project_version: ${{ steps.version.outputs.new_version }} | ||
run: | | ||
mvn ${{ env.maven_cmd }} | ||
- name: 🗃️ Publish Release (main) | ||
env: | ||
project_version: ${{ steps.version.outputs.new_version }} | ||
|
@@ -55,6 +67,7 @@ jobs: | |
generate_release_notes: true | ||
tag_name: ${{ env.project_version }} | ||
files: ${{ env.files }} | ||
|
||
- name: 🗃️ Publish Release (dev) | ||
env: | ||
project_version: ${{ steps.version.outputs.new_version }} | ||
|
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
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