This repository has been archived by the owner on May 4, 2024. It is now read-only.
Remove unused CANNOT_RENAME translation #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: Build and Publish | |
env: | |
GH_PKG_URL: "https://maven.pkg.github.com/${{ github.repository }}" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- v* | |
paths-ignore: | |
- "README.md" | |
- "LICENSE" | |
- ".github/**/*" | |
jobs: | |
vars: | |
name: Get Variables | |
runs-on: ubuntu-20.04 | |
outputs: | |
version: ${{steps.version.outputs.version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Version | |
id: version | |
uses: paulhatch/semantic-version@v5.0.2 | |
with: | |
bump_each_commit: true | |
publish: | |
name: Publish | |
runs-on: ubuntu-20.04 | |
needs: [ vars ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: "17" | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: publish | |
env: | |
CM_VERSION: ${{ needs.vars.outputs.version }} | |
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |