Skip to content

Commit a81fc3b

Browse files
committed
fix
1 parent 0ec2e63 commit a81fc3b

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
name: Deploy and Publish
77

88
on:
9-
workflow_run:
10-
workflows: ["Build and Test"]
9+
push:
10+
branches: [ '**' ]
11+
pull_request:
1112
branches: [ master ]
12-
types:
13-
- completed
1413

1514
# Allows you to run this workflow manually from the Actions tab
1615
workflow_dispatch:
@@ -46,34 +45,14 @@ jobs:
4645

4746
- name: Get the version tag
4847
id: get_version_tag
49-
run: echo ::set-output name=SOURCE_TAG::$(echo $GITHUB_REF | cut -d / -f 3)
48+
run: echo ::set-output name=SOURCE_TAG::$(echo "v2.3.6" | cut -d / -f 3)
5049

5150
- name: Check if branch is a version tag
5251
id: new_release
5352
run: |
54-
echo ::set-output name=NEW_RELEASE::$(echo ${{ github.ref }} | grep -ciP "refs/heads/v\K[0-9]+\.[0-9]+\.[0-9]+")
53+
echo ::set-output name=NEW_RELEASE::$(echo "refs/heads/v2.3.6" | grep -ciP "refs/heads/v\K[0-9]+\.[0-9]+\.[0-9]+")
5554
echo ${{ steps.get_version_tag.outputs.SOURCE_TAG }}
5655
57-
- name: Publish/Deploy to Maven Central
58-
if: ${{ steps.new_release.outputs.NEW_RELEASE == 1}}
59-
env:
60-
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
61-
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
62-
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
63-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
64-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
65-
run: scripts/deploy_gha.sh
66-
67-
- name: Publish/Deploy to Git
68-
if: ${{ steps.new_release.outputs.NEW_RELEASE == 1}}
69-
uses: marvinpinto/action-automatic-releases@latest
70-
with:
71-
repo_token: ${{ secrets.GH_TOKEN }}
72-
automatic_release_tag: ${{ steps.get_version_tag.outputs.SOURCE_TAG }}
73-
prerelease: false
74-
draft: false
75-
files: build/libs/watson-spring-boot-starter-${{ steps.get_version_tag.outputs.SOURCE_TAG }}-jar-with-dependencies.jar
76-
7756
- name: SKIP - Publish/Deploy to Git and Maven Central
7857
if: ${{ steps.new_release.outputs.NEW_RELEASE == 0}}
7958
run: |

0 commit comments

Comments
 (0)