This repository has been archived on 2024-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Dominion/.github/workflows/main.yml

35 lines
787 B
YAML
Raw Normal View History

name: Java CI-CD with Gradle
2024-02-04 17:54:17 +08:00
on:
push:
tags:
- '*'
jobs:
build:
# 配置权限
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
2024-02-04 17:54:17 +08:00
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'zulu'
cache: gradle
- name: "Build with Gradle"
run: ./gradlew buildPlugin
- name: "Copy jar to staging"
run: mkdir staging && cp build/libs/*.jar staging/
2024-02-04 17:54:17 +08:00
- name: "Build & test"
run: |
echo "done!"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
2024-05-13 15:45:58 +08:00
automatic_release_tag: "latest"
2024-02-04 17:54:17 +08:00
prerelease: false
files: |
staging/*.jar