@@ -73,83 +73,83 @@ jobs:
73
73
distribution : " temurin"
74
74
java-version : " 11"
75
75
76
- - name : Setup CommandBox
77
- uses :
Ortus-Solutions/[email protected]
78
- with :
79
- forgeboxAPIKey : ${{ secrets.FORGEBOX_TOKEN }}
80
-
81
- - name : Setup Environment Variables For Build Process
82
- id : current_version
83
- run : |
84
- echo "VERSION=`cat box.json | jq '.version' -r`" >> $GITHUB_ENV
85
-
86
- # master or snapshot
87
- echo "Github Ref is $GITHUB_REF"
88
- echo "BRANCH=master" >> $GITHUB_ENV
89
- if [ $GITHUB_REF == 'refs/heads/development' ]
90
- then
91
- echo "BRANCH=development" >> $GITHUB_ENV
92
- fi
93
-
94
- - name : Update changelog [unreleased] with latest version
95
- uses :
thomaseizinger/[email protected]
96
- if : ${{ !inputs.snapshot }}
97
- with :
98
- changelogPath : ./changelog.md
99
- tag : v${{ env.VERSION }}
100
-
101
- - name : Build ${{ env.MODULE_ID }}
102
- run : |
103
- box install commandbox-docbox
104
- box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
105
-
106
- - name : Commit Changelog To Master
107
-
108
- if : ${{ !inputs.snapshot }}
109
- with :
110
- author_name : Github Actions
111
-
112
- message : ' Finalized changelog for v${{ env.VERSION }}'
113
- add : changelog.md
114
-
115
- - name : Tag Version
116
-
117
- if : ${{ !inputs.snapshot }}
118
- with :
119
- tag : " v${{ env.VERSION }}"
120
- force_push_tag : true
121
- message : " Latest Release v${{ env.VERSION }}"
122
-
123
- - name : Upload Build Artifacts
124
- if : success()
125
- uses : actions/upload-artifact@v3
126
- with :
127
- name : ${{ env.MODULE_ID }}
128
- path : |
129
- .artifacts/**/*
130
- changelog.md
131
-
132
- - name : Publish To ForgeBox
133
- run : |
134
- cd .tmp/${{ env.MODULE_ID }} && box forgebox publish --force
135
-
136
- - name : Create Github Release
137
-
138
- continue-on-error : true
139
- if : ${{ !inputs.snapshot }}
140
- with :
141
- title : ${{ env.VERSION }}
142
- changelog : changelog.md
143
- token : ${{ secrets.GITHUB_TOKEN }}
144
- ref : refs/tags/v${{ env.VERSION }}
76
+ # - name: Setup CommandBox
77
+ # uses: Ortus-Solutions/[email protected]
78
+ # with:
79
+ # forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
80
+
81
+ # - name: Setup Environment Variables For Build Process
82
+ # id: current_version
83
+ # run: |
84
+ # echo "VERSION=`cat box.json | jq '.version' -r`" >> $GITHUB_ENV
85
+
86
+ # # master or snapshot
87
+ # echo "Github Ref is $GITHUB_REF"
88
+ # echo "BRANCH=master" >> $GITHUB_ENV
89
+ # if [ $GITHUB_REF == 'refs/heads/development' ]
90
+ # then
91
+ # echo "BRANCH=development" >> $GITHUB_ENV
92
+ # fi
93
+
94
+ # - name: Update changelog [unreleased] with latest version
95
+ # uses: thomaseizinger/[email protected]
96
+ # if: ${{ !inputs.snapshot }}
97
+ # with:
98
+ # changelogPath: ./changelog.md
99
+ # tag: v${{ env.VERSION }}
100
+
101
+ # - name: Build ${{ env.MODULE_ID }}
102
+ # run: |
103
+ # box install commandbox-docbox
104
+ # box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
105
+
106
+ # - name: Commit Changelog To Master
107
+
108
+ # if: ${{ !inputs.snapshot }}
109
+ # with:
110
+ # author_name: Github Actions
111
+
112
+ # message: 'Finalized changelog for v${{ env.VERSION }}'
113
+ # add: changelog.md
114
+
115
+ # - name: Tag Version
116
+ # uses: rickstaa/[email protected]
117
+ # if: ${{ !inputs.snapshot }}
118
+ # with:
119
+ # tag: "v${{ env.VERSION }}"
120
+ # force_push_tag: true
121
+ # message: "Latest Release v${{ env.VERSION }}"
122
+
123
+ # - name: Upload Build Artifacts
124
+ # if: success()
125
+ # uses: actions/upload-artifact@v3
126
+ # with:
127
+ # name: ${{ env.MODULE_ID }}
128
+ # path: |
129
+ # .artifacts/**/*
130
+ # changelog.md
131
+
132
+ # - name: Publish To ForgeBox
133
+ # run: |
134
+ # cd .tmp/${{ env.MODULE_ID }} && box forgebox publish --force
135
+
136
+ # - name: Create Github Release
137
+
138
+ # continue-on-error: true
139
+ # if: ${{ !inputs.snapshot }}
140
+ # with:
141
+ # title: ${{ env.VERSION }}
142
+ # changelog: changelog.md
143
+ # token: ${{ secrets.GITHUB_TOKEN }}
144
+ # ref: refs/tags/v${{ env.VERSION }}
145
145
146
146
# #########################################################################################
147
147
# Prep Next Release
148
148
# #########################################################################################
149
149
prep-next-release :
150
150
name : Prep Next Release
151
151
if : ${{ !inputs.snapshot && success() }}
152
- needs : [ build ]
152
+ needs : [ tests, format, build ]
153
153
runs-on : ubuntu-20.04
154
154
steps :
155
155
# Checkout development
@@ -158,29 +158,29 @@ jobs:
158
158
with :
159
159
ref : development
160
160
161
- - name : Download build artifacts
162
- uses : actions/download-artifact@v2
163
- with :
164
- name : ${{ env.MODULE_ID }}
165
- path : .tmp
166
-
167
- # Copy the changelog to the development branch
168
- - name : Copy Changelog
169
- run : |
170
- cp .tmp/changelog.md changelog.md
171
-
172
- # Bump to next version
173
- - name : Bump Version
174
- run : |
175
- box bump --minor --!TagVersion
176
-
177
- # Commit it back to development
178
- - name : Commit Version Bump
179
-
180
- with :
181
- author_name : Github Actions
182
-
183
- message : ' Version bump'
184
- add : |
185
- box.json
186
- changelog.md
161
+ # - name: Download build artifacts
162
+ # uses: actions/download-artifact@v2
163
+ # with:
164
+ # name: ${{ env.MODULE_ID }}
165
+ # path: .tmp
166
+
167
+ # # Copy the changelog to the development branch
168
+ # - name: Copy Changelog
169
+ # run: |
170
+ # cp .tmp/changelog.md changelog.md
171
+
172
+ # # Bump to next version
173
+ # - name: Bump Version
174
+ # run: |
175
+ # box bump --minor --!TagVersion
176
+
177
+ # # Commit it back to development
178
+ # - name: Commit Version Bump
179
+
180
+ # with:
181
+ # author_name: Github Actions
182
+
183
+ # message: 'Version bump'
184
+ # add: |
185
+ # box.json
186
+ # changelog.md
0 commit comments