Skip to content

Commit

Permalink
Merge pull request #2 from YANG-DB/release-drafter
Browse files Browse the repository at this point in the history
Release drafter
  • Loading branch information
YANG-DB authored Jan 5, 2023
2 parents 567fb15 + a952e8b commit b420f97
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release drafter

# Push events to every tag not containing "/"
on:
push:
tags:
- "*"

jobs:
draft-a-release:
name: Draft a release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: |
./gradlew --no-daemon -Dbuild.snapshot=false publishPublishMavenPublicationToLocalRepoRepository && tar -C build -cvf artifacts.tar.gz repository
- name: Draft a release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
files: |
artifacts.tar.gz

0 comments on commit b420f97

Please sign in to comment.