1
1
name : Publish
2
2
on :
3
- release :
4
- types : [published]
3
+ push :
4
+ # on:
5
+ # release:
6
+ # types: [published]
5
7
6
8
jobs :
7
9
publish :
8
10
runs-on : ubuntu-latest
9
11
10
- outputs :
11
- release_number : ${{steps.get_latest_release_number.outputs.release_tag}}
12
+ # outputs:
13
+ # release_number: ${{steps.get_latest_release_number.outputs.release_tag}}
12
14
permissions :
13
15
contents : write
14
16
pull-requests : write
@@ -31,15 +33,15 @@ jobs:
31
33
server-password : MAVEN_PASSWORD
32
34
gpg-passphrase : GPG_PASSPHRASE
33
35
34
- - name : Fetch Latest release number
35
- id : get_latest_release_number
36
- run : |
37
- latest_version=$(gh release view --json tagName --jq '.tagName')
38
- echo "Latest release version is - $latest_version"
39
- echo "::set-output name=release_tag::$latest_version"
40
- working-directory : Xero-Java
41
- env :
42
- GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
36
+ # - name: Fetch Latest release number
37
+ # id: get_latest_release_number
38
+ # run: |
39
+ # latest_version=$(gh release view --json tagName --jq '.tagName')
40
+ # echo "Latest release version is - $latest_version"
41
+ # echo "::set-output name=release_tag::$latest_version"
42
+ # working-directory: Xero-Java
43
+ # env:
44
+ # GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
43
45
44
46
- name : Import GPG Key
45
47
run : |
@@ -57,52 +59,52 @@ jobs:
57
59
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
58
60
working-directory : Xero-Java
59
61
60
- notify-slack-on-success :
61
- runs-on : ubuntu-latest
62
- needs : publish
63
- if : success()
64
- permissions :
65
- contents : read
66
- steps :
67
- - name : Checkout Xero-Java repo
68
- uses : actions/checkout@v4
69
- with :
70
- repository : XeroAPI/Xero-Java
71
- path : Xero-Java
62
+ # notify-slack-on-success:
63
+ # runs-on: ubuntu-latest
64
+ # needs: publish
65
+ # if: success()
66
+ # permissions:
67
+ # contents: read
68
+ # steps:
69
+ # - name: Checkout Xero-Java repo
70
+ # uses: actions/checkout@v4
71
+ # with:
72
+ # repository: XeroAPI/Xero-Java
73
+ # path: Xero-Java
72
74
73
- - name : Send slack notification on success
74
- uses : ./Xero-Java/.github/actions/notify-slack
75
- with :
76
- heading_text : " Publish job has succeeded !"
77
- alert_type : " thumbsup"
78
- job_status : " Success"
79
- XERO_SLACK_WEBHOOK_URL : ${{secrets.XERO_SLACK_WEBHOOK_URL}}
80
- job_url : " https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
81
- button_type : " primary"
82
- package_version : ${{needs.publish.outputs.release_number}}
83
- repo_link : ${{github.server_url}}/${{github.repository}}
75
+ # - name: Send slack notification on success
76
+ # uses: ./Xero-Java/.github/actions/notify-slack
77
+ # with:
78
+ # heading_text: "Publish job has succeeded !"
79
+ # alert_type: "thumbsup"
80
+ # job_status: "Success"
81
+ # XERO_SLACK_WEBHOOK_URL: ${{secrets.XERO_SLACK_WEBHOOK_URL}}
82
+ # job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
83
+ # button_type: "primary"
84
+ # package_version: ${{needs.publish.outputs.release_number}}
85
+ # repo_link: ${{github.server_url}}/${{github.repository}}
84
86
85
- notify-slack-on-failure :
86
- runs-on : ubuntu-latest
87
- needs : publish
88
- if : failure()
89
- permissions :
90
- contents : read
91
- steps :
92
- - name : Checkout Xero-Java repo
93
- uses : actions/checkout@v4
94
- with :
95
- repository : XeroAPI/Xero-Java
96
- path : Xero-Java
87
+ # notify-slack-on-failure:
88
+ # runs-on: ubuntu-latest
89
+ # needs: publish
90
+ # if: failure()
91
+ # permissions:
92
+ # contents: read
93
+ # steps:
94
+ # - name: Checkout Xero-Java repo
95
+ # uses: actions/checkout@v4
96
+ # with:
97
+ # repository: XeroAPI/Xero-Java
98
+ # path: Xero-Java
97
99
98
- - name : Send slack notification on failure
99
- uses : ./Xero-Java/.github/actions/notify-slack
100
- with :
101
- heading_text : " Publish job has failed !"
102
- alert_type : " alert"
103
- job_status : " Failed"
104
- XERO_SLACK_WEBHOOK_URL : ${{secrets.XERO_SLACK_WEBHOOK_URL}}
105
- job_url : " https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
106
- button_type : " danger"
107
- package_version : ${{needs.publish.outputs.release_number}}
108
- repo_link : ${{github.server_url}}/${{github.repository}}
100
+ # - name: Send slack notification on failure
101
+ # uses: ./Xero-Java/.github/actions/notify-slack
102
+ # with:
103
+ # heading_text: "Publish job has failed !"
104
+ # alert_type: "alert"
105
+ # job_status: "Failed"
106
+ # XERO_SLACK_WEBHOOK_URL: ${{secrets.XERO_SLACK_WEBHOOK_URL}}
107
+ # job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
108
+ # button_type: "danger"
109
+ # package_version: ${{needs.publish.outputs.release_number}}
110
+ # repo_link: ${{github.server_url}}/${{github.repository}}
0 commit comments