Skip to content

Commit

Permalink
Add GitHub publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed May 28, 2024
1 parent edfede9 commit cf7e671
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Build
name: 'Build'

on: # yamllint disable-line rule:truthy
push:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
18 changes: 0 additions & 18 deletions Jenkinsfile

This file was deleted.

0 comments on commit cf7e671

Please sign in to comment.