Skip to content

Commit

Permalink
WIP ci: add GitHub Actions for testing and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Mar 13, 2024
1 parent b18b643 commit 8c1526b
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check

on:
pull_request:
branches:
- master
- devel
# XXX for testing
push:
branches:
- ci/gha

jobs:
check:
uses: wetransform/gha-workflows/.github/workflows/gradle-library-check.yml@master
with:
java-version: 17
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish

on:
push:
branches:
- devel
- master
workflow_dispatch: {}

concurrency:
# only run one publishing at a time to avoid conflicts in artifactory
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
artifacts:
uses: wetransform/gha-workflows/.github/workflows/gradle-library.yml@master
with:
java-version: 17
gradle-tasks: clean check distZip buildDeb publish
upload-artifact-path: build/distributions
upload-artifact-name: distributions
secrets:
SLACK_NOTIFICATIONS_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

docker:
uses: wetransform/gha-workflows/.github/workflows/gradle-service-publish.yml@master
with:
java-version: 17
image-tag: wetransform/hale-cli:latest
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
SLACK_NOTIFICATIONS_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 comments on commit 8c1526b

Please sign in to comment.