mirror of
https://github.com/sys-32Dev/TACZ.git
synced 2026-08-08 20:06:25 +00:00
移除action
This commit is contained in:
62
.github/workflows/gradle-publish.yml
vendored
62
.github/workflows/gradle-publish.yml
vendored
@@ -1,62 +0,0 @@
|
||||
name: Gradle Package 1.20.1
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- "1.20.1"
|
||||
paths:
|
||||
- 'src/main/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: "1.20.1"
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'adopt'
|
||||
server-id: github
|
||||
settings-path: ${{ github.workspace }}
|
||||
|
||||
- name: Cache Gradle packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Build with Gradle
|
||||
run: |
|
||||
chmod +x ./gradlew
|
||||
./gradlew build
|
||||
|
||||
- name: Create timestamp
|
||||
id: create_timestamp
|
||||
run: echo "::set-output name=timestamp::$(date '+%Y%m%d%H%M%s')"
|
||||
shell: bash
|
||||
|
||||
- name: Send file to Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: snapshot-${{ steps.create_timestamp.outputs.timestamp }}
|
||||
body: ${{ github.event.head_commit.message }}
|
||||
draft: false
|
||||
prerelease: true
|
||||
files: |
|
||||
./build/libs/*.jar
|
||||
|
||||
- name: Cleanup Gradle Cache
|
||||
run: |
|
||||
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
||||
rm -f ~/.gradle/caches/modules-2/gc.properties
|
||||
Reference in New Issue
Block a user