-
-
Notifications
You must be signed in to change notification settings - Fork 55
98 lines (95 loc) · 3.1 KB
/
build-development-jars-and-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build Development Jars and Publish
on:
pull_request:
branches:
- main
paths:
- 'plugins/**'
- 'adapters/**'
- '.github/workflows/build-development-jars-and-publish.yml'
jobs:
build-publish-development:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Build Plugin
uses: ./.github/actions/build-plugin
- name: Build Basic Adapter
uses: ./.github/actions/build-adapter
with:
adapter: BasicAdapter
- name: Build Citizens Adapter
uses: ./.github/actions/build-adapter
with:
adapter: CitizensAdapter
- name: Build CombatLogX Adapter
uses: ./.github/actions/build-adapter
with:
adapter: CombatLogXAdapter
- name: Build MythicMobs Adapter
uses: ./.github/actions/build-adapter
with:
adapter: MythicMobsAdapter
- name: Build RPGRegions Adapter
uses: ./.github/actions/build-adapter
with:
adapter: RPGRegionsAdapter
- name: Build SuperiorSkyblock Adapter
uses: ./.github/actions/build-adapter
with:
adapter: SuperiorSkyblockAdapter
- name: Build Vault Adapter
uses: ./.github/actions/build-adapter
with:
adapter: VaultAdapter
- name: Build WorldGuard Adapter
uses: ./.github/actions/build-adapter
with:
adapter: WorldGuardAdapter
- name: Get version
id: vars
run: |
version=$(cat version.txt)
short_sha=$(echo $GITHUB_SHA | cut -c1-7)
full_version="${version}-dev-${short_sha}"
echo $full_version
echo "version=$full_version" >> $GITHUB_OUTPUT
- name: Publish Development Jars
uses: Kir-Antipov/[email protected]
id: publish
with:
modrinth-id: "Vm7B3ymm"
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: false
github-token: ${{ secrets.GITHUB_TOKEN }}
github-tag: "v${{ steps.vars.outputs.version }}"
github-prerelease: true
files: |
plugin/build/libs/typewriter.jar
adapters/**/build/libs/*.jar
name: "Typewriter v${{ steps.vars.outputs.version }} Development Build"
version: "${{ steps.vars.outputs.version }}"
version-type: "beta"
loaders: |
paper
purpur
game-versions: |
1.19.4
1.20
1.20.1
1.20.2
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nodetail: true
title: Published Development Build
description: |
I have published a development build of Typewriter.
Version: ${{ steps.vars.outputs.version }}
[Download](https://modrinth.com/mod/typewriter/versions/${{ steps.publish.outputs.modrinth-version }})