Skip to content

Commit af7a911

Browse files
committed
Almost there...
1 parent 7d1b553 commit af7a911

File tree

1 file changed

+46
-17
lines changed

1 file changed

+46
-17
lines changed

.github/workflows/test-build.yml

Lines changed: 46 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
workflow_dispatch:
55

66
jobs:
7+
vars:
8+
name: Get Variables
9+
runs-on: ubuntu-latest
10+
outputs:
11+
release_type: ${{steps.releasetype.outputs.value }}
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Release Type
17+
id: releasetype
18+
uses: christian-draeger/[email protected]
19+
with:
20+
path: './gradle.properties'
21+
property: 'cf_release_type'
22+
723
changelog:
824
name: Generate Changelog (tags)
925
runs-on: ubuntu-latest
@@ -94,23 +110,6 @@ jobs:
94110
name: libs
95111
path: build/libs/*.jar
96112

97-
echo:
98-
name: Echo Variables
99-
runs-on: ubuntu-latest
100-
steps:
101-
- name: Checkout
102-
uses: actions/checkout@v2
103-
104-
- name: Release Type
105-
id: releasetype
106-
uses: christian-draeger/[email protected]
107-
with:
108-
path: './gradle.properties'
109-
property: 'cf_release_type'
110-
111-
- name: Echo
112-
run: echo ${{steps.releasetype.outputs.value }}
113-
114113
view:
115114
name: View Changelog Output
116115
runs-on: ubuntu-latest
@@ -122,3 +121,33 @@ jobs:
122121
name: out
123122
path: changelog
124123
- run: cat changelog/CHANGELOG.md
124+
125+
release:
126+
name: Make GitHub Release
127+
runs-on: ubuntu-latest
128+
needs: [changelog, vars, jar]
129+
steps:
130+
- name: Download Build Results
131+
uses: actions/download-artifact@v2
132+
with:
133+
name: libs
134+
path: buildfiles
135+
- name: Download Changelog Results
136+
uses: actions/download-artifact@v2
137+
with:
138+
name: out
139+
path: changelog
140+
- name: Debug
141+
run: cat changelog/CHANGELOG.md
142+
- name: ShowFiles
143+
run: dir buildfiles
144+
# - name: Create Release
145+
# uses: "marvinpinto/action-automatic-releases@latest"
146+
# with:
147+
# title: "Release ${{ github.event.release.tag_name }}"
148+
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
149+
# prerelease: false
150+
# files: |
151+
# changelog/CHANGELOG.md
152+
# LICENSE.txt
153+
# buildfiles/*

0 commit comments

Comments
 (0)