Skip to content

Commit b294ad4

Browse files
committed
more tests
1 parent c186c7a commit b294ad4

File tree

1 file changed

+78
-77
lines changed

1 file changed

+78
-77
lines changed

.github/workflows/release.yml

Lines changed: 78 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
4444

4545
- name: Setup Environment Variables For Build Process
46+
if: ${{ !env.SNAPSHOT }}
4647
id: current_version
4748
run: |
4849
echo "VERSION=`cat box.json | jq '.version' -r`" >> $GITHUB_ENV
@@ -55,57 +56,57 @@ jobs:
5556
echo "BRANCH=development" >> $GITHUB_ENV
5657
fi
5758
58-
- name: Update changelog [unreleased] with latest version
59-
uses: thomaseizinger/[email protected]
60-
if: ${{ !env.SNAPSHOT }}
61-
with:
62-
changelogPath: ./changelog.md
63-
tag: v${{ env.VERSION }}
64-
65-
- name: Build ${{ env.MODULE_ID }}
66-
run: |
67-
box install commandbox-docbox
68-
box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
69-
70-
- name: Commit Changelog To Master
71-
uses: EndBug/[email protected]
72-
if: ${{ !env.SNAPSHOT }}
73-
with:
74-
author_name: Github Actions
75-
author_email: [email protected]
76-
message: 'Finalized changelog for v${{ env.VERSION }}'
77-
add: changelog.md
78-
79-
- name: Tag Version
80-
uses: rickstaa/[email protected]
81-
if: ${{ !env.SNAPSHOT }}
82-
with:
83-
tag: "v${{ env.VERSION }}"
84-
force_push_tag: true
85-
message: "Latest Release v${{ env.VERSION }}"
86-
87-
- name: Upload Build Artifacts
88-
if: success()
89-
uses: actions/upload-artifact@v3
90-
with:
91-
name: ${{ env.MODULE_ID }}
92-
path: |
93-
.artifacts/**/*
94-
changelog.md
95-
96-
- name: Publish To ForgeBox
97-
run: |
98-
cd .tmp/${{ env.MODULE_ID }} && box forgebox publish --force
99-
100-
- name: Create Github Release
101-
uses: taiki-e/[email protected]
102-
continue-on-error: true
103-
if: ${{ !env.SNAPSHOT }}
104-
with:
105-
title: ${{ env.VERSION }}
106-
changelog: changelog.md
107-
token: ${{ secrets.GITHUB_TOKEN }}
108-
ref: refs/tags/v${{ env.VERSION }}
59+
# - name: Update changelog [unreleased] with latest version
60+
# uses: thomaseizinger/[email protected]
61+
# if: ${{ !env.SNAPSHOT }}
62+
# with:
63+
# changelogPath: ./changelog.md
64+
# tag: v${{ env.VERSION }}
65+
66+
# - name: Build ${{ env.MODULE_ID }}
67+
# run: |
68+
# box install commandbox-docbox
69+
# box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
70+
71+
# - name: Commit Changelog To Master
72+
# uses: EndBug/[email protected]
73+
# if: ${{ !env.SNAPSHOT }}
74+
# with:
75+
# author_name: Github Actions
76+
# author_email: [email protected]
77+
# message: 'Finalized changelog for v${{ env.VERSION }}'
78+
# add: changelog.md
79+
80+
# - name: Tag Version
81+
# uses: rickstaa/[email protected]
82+
# if: ${{ !env.SNAPSHOT }}
83+
# with:
84+
# tag: "v${{ env.VERSION }}"
85+
# force_push_tag: true
86+
# message: "Latest Release v${{ env.VERSION }}"
87+
88+
# - name: Upload Build Artifacts
89+
# if: success()
90+
# uses: actions/upload-artifact@v3
91+
# with:
92+
# name: ${{ env.MODULE_ID }}
93+
# path: |
94+
# .artifacts/**/*
95+
# changelog.md
96+
97+
# - name: Publish To ForgeBox
98+
# run: |
99+
# cd .tmp/${{ env.MODULE_ID }} && box forgebox publish --force
100+
101+
# - name: Create Github Release
102+
# uses: taiki-e/[email protected]
103+
# continue-on-error: true
104+
# if: ${{ !env.SNAPSHOT }}
105+
# with:
106+
# title: ${{ env.VERSION }}
107+
# changelog: changelog.md
108+
# token: ${{ secrets.GITHUB_TOKEN }}
109+
# ref: refs/tags/v${{ env.VERSION }}
109110

110111
##########################################################################################
111112
# Prep Next Release
@@ -126,29 +127,29 @@ jobs:
126127
with:
127128
forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
128129

129-
- name: Download build artifacts
130-
uses: actions/download-artifact@v2
131-
with:
132-
name: ${{ env.MODULE_ID }}
133-
path: .tmp
134-
135-
# Copy the changelog to the development branch
136-
- name: Copy Changelog
137-
run: |
138-
cp .tmp/changelog.md changelog.md
139-
140-
# Bump to next version
141-
- name: Bump Version
142-
run: |
143-
box bump --minor --!TagVersion
144-
145-
# Commit it back to development
146-
- name: Commit Version Bump
147-
uses: EndBug/[email protected]
148-
with:
149-
author_name: Github Actions
150-
author_email: [email protected]
151-
message: 'Version bump'
152-
add: |
153-
box.json
154-
changelog.md
130+
# - name: Download build artifacts
131+
# uses: actions/download-artifact@v2
132+
# with:
133+
# name: ${{ env.MODULE_ID }}
134+
# path: .tmp
135+
136+
# # Copy the changelog to the development branch
137+
# - name: Copy Changelog
138+
# run: |
139+
# cp .tmp/changelog.md changelog.md
140+
141+
# # Bump to next version
142+
# - name: Bump Version
143+
# run: |
144+
# box bump --minor --!TagVersion
145+
146+
# # Commit it back to development
147+
# - name: Commit Version Bump
148+
# uses: EndBug/[email protected]
149+
# with:
150+
# author_name: Github Actions
151+
# author_email: [email protected]
152+
# message: 'Version bump'
153+
# add: |
154+
# box.json
155+
# changelog.md

0 commit comments

Comments
 (0)