Skip to content

Port

Port #64

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/checkout@v4.1.4
- 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/setup-java@v4.2.1
with:
distribution: "temurin"
java-version: "17"
- name: Version
uses: cycjimmy/semantic-release-action@v4.1.0
with:
semantic_version: "23.0.8"
extra_plugins: |
@semantic-release/exec@6.0.1
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/semantic-release-action@v4.1.0
with:
semantic_version: "23.0.8"
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}