Skip to content

Commit

Permalink
ci: add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-olaiya committed Apr 16, 2022
1 parent ceea406 commit af5991b
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/built_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- master
workflow_dispatch:


jobs:
# Runs all tests
build:
Expand Down Expand Up @@ -52,3 +51,32 @@ jobs:
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
signing-key: ${{ secrets.SIGNING_KEY }}
signing-password: ${{ secrets.SIGNING_PASSWORD }}
release:
needs:
- build
- test-deploy
runs-on: ubuntu-latest
if: >-
contains('push workflow_dispatch', github.event_name)
&& contains(github.repository, 'Kelvindev15/Kotlin2PlantUML')
steps:
- name: Checkout
uses: actions/checkout@v3.0.1
with:
submodules: recursive
token: ${{ secrets.DEPLOYMENT_TOKEN }}
- uses: DanySK/build-check-deploy-gradle-action@1.2.12
with:
java-version: 11
build-command: true
check-command: true
deploy-command: |
npm install
npx semantic-release
should-run-codecov: false
should-deploy: true
should-validate-wrapper: false
github-token: ${{ secrets.DEPLOYMENT_TOKEN }}
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
signing-key: ${{ secrets.SIGNING_KEY }}
signing-password: ${{ secrets.SIGNING_PASSWORD }}

0 comments on commit af5991b

Please sign in to comment.