-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.build.yml
More file actions
44 lines (44 loc) · 1.53 KB
/
Copy path.build.yml
File metadata and controls
44 lines (44 loc) · 1.53 KB
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
image: alpine/edge
oauth: git.sr.ht/PROFILE:RO git.sr.ht/REPOSITORIES:RO git.sr.ht/OBJECTS:RW
secrets:
- 178fd3d3-8d4e-4409-a8a6-3eb6a1a635bf
- 5389faf3-af7e-47e5-a418-f9a002d3c4c2
sources:
- git@git.sr.ht:~tpt/NoteworthyII
environment:
versions: 12.0.1
repo: NoteworthyII
packages:
- openjdk17
- hut
tasks:
- get-release-version: |
if [[ $GIT_REF != *"tag"* ]]; then \
complete-build; \
fi
cd $repo
echo "export NW_RELEASE_VERSION=${GIT_REF/refs\/tags\//}" >> ~/.buildenv
- prepare-wrapper: |
cd $repo
chmod u+x ./nww.sh
- get-changelog-delta: |
cd $repo
./nww.sh changelog -vf $NW_RELEASE_VERSION > ${NW_RELEASE_VERSION}-changelog.txt
- package: |
cd $repo
./nww.sh pack -pv $NW_RELEASE_VERSION
echo "export NW_FILE=NoteworthyII_${NW_RELEASE_VERSION}.zip" >> ~/.buildenv
- hash: |
cd $repo
./nww.sh hash $NW_FILE > ${NW_FILE}.md5
./nww.sh hash -a SHA-1 $NW_FILE > ${NW_FILE}.sha1
- upload-artifact: |
cd $repo
hut git artifact upload -r NoteworthyII --rev $NW_RELEASE_VERSION $NW_FILE
hut git artifact upload -r NoteworthyII --rev $NW_RELEASE_VERSION ${NW_FILE}.md5
hut git artifact upload -r NoteworthyII --rev $NW_RELEASE_VERSION ${NW_FILE}.sha1
hut git artifact upload -r NoteworthyII --rev $NW_RELEASE_VERSION ${NW_RELEASE_VERSION}-changelog.txt
- curse-forge-release: |
cd $repo
export CF_API_TOKEN=$(cat ~/.cf-token)
./nww.sh upload -p $NW_FILE -rv $NW_RELEASE_VERSION -gv $versions -v