Skip to content

Port

Port #62

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- master
pull_request:
branches-ignore:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Prepare build
run: |
sed -i "s/{{release_branch}}/$GITHUB_REF_NAME/" .releaserc* || exit 1
mv .releaserc1.yml .releaserc.yml
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "17"
- name: Version
uses: cycjimmy/[email protected]
with:
semantic_version: "23.0.8"
extra_plugins: |
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
- name: Build
run: |
sed -i "s/mod_version=.*/mod_version=$(cat .version)/" gradle.properties || exit 1
./gradlew build
mv .releaserc2.yml .releaserc.yml
- name: Release
uses: cycjimmy/[email protected]
with:
semantic_version: "23.0.8"
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}