From cf7e6714f4596e718e9790b0900fb0c2267118f7 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Tue, 28 May 2024 17:43:02 +0200 Subject: [PATCH] Add GitHub publish workflow --- .github/workflows/build.yaml | 2 +- .github/workflows/publish.yaml | 25 +++++++++++++++++++++++++ Jenkinsfile | 18 ------------------ 3 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/publish.yaml delete mode 100644 Jenkinsfile diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c383f09..2c7eb15 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,5 +1,5 @@ --- -name: Build +name: 'Build' on: # yamllint disable-line rule:truthy push: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..f5323be --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,25 @@ +--- +name: 'Publish' + +on: # yamllint disable-line rule:truthy + push: + tags: + - "release-*.*.*" + +jobs: + build: + uses: metaborg/actions/.github/workflows/gradle-publish.yaml@main + with: + os: 'ubuntu-latest' + java-version: '11' + java-distribution: 'temurin' + gradle-version: 'wrapper' + gradle-build-scan-publish: false + gradle-command: | + gradle assemble publish + secrets: + METABORG_ARTIFACTS_USERNAME: ${{ secrets.METABORG_ARTIFACTS_USERNAME }} + METABORG_ARTIFACTS_PASSWORD: ${{ secrets.METABORG_ARTIFACTS_PASSWORD }} + # SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} + # SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} + # SIGNING_KEY: ${{ secrets.SIGNING_KEY }} diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index a99fed3..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,18 +0,0 @@ -#!groovy -@Library('metaborg.jenkins.pipeline') _ - -gradlePipeline( - // Git - mainBranch: "master", - - // Gradle - gradleBuildTasks: "build", - gradlePublishTasks: "publish", - - // Releases - releaseTagPattern: "release-*.*.*", - - // Slack - slack: true, - slackChannel: "#spoofax3-dev" -)