Skip to content

Commit

Permalink
Create releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CSneko authored Jul 25, 2024
1 parent 71407f1 commit 9224397
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Release Artifacts

on:
release:
types: [created]

jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4


- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

- name: Run DataGenera
run: ./gradlew runDatagen

- name: Build
run: ./gradlew build

- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.event.release.tag_name }}
name: ${{ github.event.release.tag_name }} 更新
body: 发布 ${{ github.event.release.tag_name }}
files: |
build/libs/*
generate_notes: true

0 comments on commit 9224397

Please sign in to comment.