This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
fix: disconnection when someone moves to afk (#233) #37
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
name: π¦ Release | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
Publish: | |
env: | |
jdk: 16 | |
maven_cmd: clean package | |
ref_main: "main" | |
ref_dev: "dev" | |
files: | | |
./target/jdavcspeaker-jar-with-dependencies.jar | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Release Version | |
id: version | |
uses: mathieudutour/[email protected] | |
with: | |
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 }} | |
if: github.ref_name == env.ref_main | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
tag_name: ${{ env.project_version }} | |
files: ${{ env.files }} | |
- name: ποΈ Publish Release (dev) | |
env: | |
project_version: ${{ steps.version.outputs.new_version }} | |
if: github.ref_name == env.ref_dev | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: true | |
generate_release_notes: true | |
tag_name: ${{ env.project_version }} | |
files: ${{ env.files }} |