Skip to content
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

fix: disconnection when someone moves to afk (#233)

fix: disconnection when someone moves to afk (#233) #37

Workflow file for this run

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 }}