Skip to content

Commit 1c76caa

Browse files
committed
checking triggers
1 parent a43b342 commit 1c76caa

File tree

1 file changed

+96
-96
lines changed

1 file changed

+96
-96
lines changed

.github/workflows/release.yml

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -73,83 +73,83 @@ jobs:
7373
distribution: "temurin"
7474
java-version: "11"
7575

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-
uses: EndBug/[email protected]
108-
if: ${{ !inputs.snapshot }}
109-
with:
110-
author_name: Github Actions
111-
author_email: [email protected]
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-
uses: taiki-e/[email protected]
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+
# uses: EndBug/[email protected]
108+
# if: ${{ !inputs.snapshot }}
109+
# with:
110+
# author_name: Github Actions
111+
# author_email: [email protected]
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+
# uses: taiki-e/[email protected]
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 }}
145145

146146
##########################################################################################
147147
# Prep Next Release
148148
##########################################################################################
149149
prep-next-release:
150150
name: Prep Next Release
151151
if: ${{ !inputs.snapshot && success() }}
152-
needs: [ build ]
152+
needs: [ tests, format, build ]
153153
runs-on: ubuntu-20.04
154154
steps:
155155
# Checkout development
@@ -158,29 +158,29 @@ jobs:
158158
with:
159159
ref: development
160160

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-
uses: EndBug/[email protected]
180-
with:
181-
author_name: Github Actions
182-
author_email: [email protected]
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+
# uses: EndBug/[email protected]
180+
# with:
181+
# author_name: Github Actions
182+
# author_email: [email protected]
183+
# message: 'Version bump'
184+
# add: |
185+
# box.json
186+
# changelog.md

0 commit comments

Comments
 (0)