Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Jul 15, 2024
2 parents 14d6b9f + 8728279 commit 11e37f8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 自动发布

on:
push:
branches: [ "release" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
java-version: '16'
distribution: 'temurin'
cache: maven
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Get version
run: node ./javascript/getversion.js

- name: Automatic Releases
uses: marvinpinto/[email protected]
if: github.ref_name == 'master'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "exp"
prerelease: true
title: "DodoOpenJava${{ steps.Get-version.outputs.version}}"

0 comments on commit 11e37f8

Please sign in to comment.