Skip to content

Commit 16d1633

Browse files
authored
Remove multi-job aspect from deploy prerelease action. (#8140)
* Add checkout step to deploy_prerelease workflow Added a step to checkout repository content in the workflow. * Refactor GitHub Actions workflow for prerelease * Update job dependencies in deploy_prerelease.yml * Scrap concept of using separate jobs/VMs * Remove draft setting Removed draft option from GitHub release action.
1 parent 8a22238 commit 16d1633

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/deploy_prerelease.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ env:
55
CURR_VER: 0.0.0.0
66
SUPPORTED: " for MC 1.19.* & 1.20.* & 1.21.*"
77
jobs:
8-
checkout_and_compile:
8+
build_towny_and_publish_prerelease:
99
runs-on: ubuntu-latest
10+
1011
strategy:
1112
matrix:
1213
java: ['21']
13-
name: Checkout and Compile Towny
14+
name: Build Towny and Publish Pre-Release
1415
steps:
1516
- name: checkout repo content
1617
uses: actions/checkout@v3 # checkout the repository content to github runner.
@@ -25,11 +26,7 @@ jobs:
2526
env:
2627
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2728
run: mvn -B clean package -DskipTests=false
28-
prepare_prerelease_body:
29-
needs: checkout_and_compile
30-
runs-on: ubuntu-latest
31-
name: Prepare Prerelease Body
32-
steps:
29+
3330
- name: setup python
3431
uses: actions/setup-python@v3
3532
with:
@@ -40,20 +37,14 @@ jobs:
4037
run: mkdir staging && cp sponsors.txt staging
4138
- name: execute sponsortable.py
4239
run: python ./.github/workflows/prerelease/sponsortable.py
43-
- name: execute preRelease.py
40+
- name: execute prerelease.py
4441
id: prerelease_py
4542
run: python ./.github/workflows/prerelease/prerelease.py
46-
publish_prerelease:
47-
needs: [checkout_and_compile, prepare_prerelease_body]
48-
runs-on: ubuntu-latest
49-
name: Publish Prerelease
50-
steps:
5143
- name: create pre-release
5244
uses: softprops/action-gh-release@v1
5345
with:
5446
body_path: ./staging/prerelease.txt
5547
prerelease: true
56-
draft: true
5748
token: ${{ github.token }}
5849
tag_name: ${{ env.CURR_VER }}
5950
name: ${{ env.CURR_VER }}${{ env.SUPPORTED }}

0 commit comments

Comments
 (0)