From 734d8c06eedfcc4e972b8d319c003357fceee849 Mon Sep 17 00:00:00 2001 From: Benoit Moussaud Date: Wed, 30 Sep 2020 17:10:58 +0200 Subject: [PATCH] tagged release --- .github/workflows/publish.yaml | 17 ---------------- .github/workflows/tagged-release.yaml | 28 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/publish.yaml create mode 100644 .github/workflows/tagged-release.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 3b1e0e1..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Publish package to GitHub Packages -on: - release: - types: [created] -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Publish package - run: gradle clean publish - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_ACTOR: ${{ github.actor }} diff --git a/.github/workflows/tagged-release.yaml b/.github/workflows/tagged-release.yaml new file mode 100644 index 0000000..50ea708 --- /dev/null +++ b/.github/workflows/tagged-release.yaml @@ -0,0 +1,28 @@ +name: "tagged-release" + +on: + push: + tags: + - "v*" + +jobs: + tagged-release: + name: "Tagged Release" + runs-on: "ubuntu-latest" + + steps: + # ... + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: ./gradlew clean build + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: | + ./build/libs/xlr-jenkins-multibranch-plugin-*.jar +