Skip to content

Commit

Permalink
feat: finish intial release
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jan 18, 2024
1 parent 5825e16 commit 207bf25
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 25 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
passphrase: ${{ secrets.GNUPG_PASSWORD }}
detach_sign: true
files: |
*.mrpack
dist/*.mrpack
- name: Upload release
id: upload
Expand All @@ -52,22 +52,18 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
omitBody: true
artifacts: |
*.mrpack
*.mrpack.sha256
artifacts: dist/*

- name: Upload version
id: version
if: startsWith(github.ref, 'refs/tags/')
run: |
aws s3 cp *.mrpack s3://dl.webhippie.de/minecraft/boergers/${{ github.ref_name }}/
aws s3 cp *.mrpack.sha256 s3://dl.webhippie.de/minecraft/boergers/${{ github.ref_name }}/
aws s3 sync dist/ s3://dl.webhippie.de/minecraft/boergers/${{ github.ref_name }}/
- name: Upload testing
id: testing
if: startsWith(github.ref, 'refs/heads/')
run: |
aws s3 cp *.mrpack s3://dl.webhippie.de/minecraft/boergers/testing/
aws s3 cp *.mrpack.sha256 s3://dl.webhippie.de/minecraft/boergers/testing/
aws s3 sync dist/ s3://dl.webhippie.de/minecraft/boergers/testing/
...
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ dist/
docs/public/

*.jar

*.zip
*.mrpack
*.sha256
2 changes: 1 addition & 1 deletion .packwizignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ deploy/
docker/
docs/
overlay/
dist/

*.jar
*.sha256

packwiz.json
Makefile
Expand Down
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SHELL := bash
NAME := boergers
DIST := dist

UNAME := $(shell uname -s)

Expand Down Expand Up @@ -30,27 +31,30 @@ ifndef VERSION
endif
endif

$(DIST):
mkdir -p $(DIST)

.PHONY: clean
clean:
rm -f $(NAME)-*.mrpack $(NAME)-*.mrpack.sha256
rm -rf $(DIST)

.PHONY: docs
docs:
cd docs; hugo

.PHONY: build
build: $(NAME)-$(OUTPUT).mrpack $(NAME)-$(OUTPUT).mrpack.sha256
build: $(DIST)/$(NAME)-$(OUTPUT).mrpack $(DIST)/$(NAME)-$(OUTPUT).mrpack.sha256

$(NAME)-$(OUTPUT).mrpack:
$(DIST)/$(NAME)-$(OUTPUT).mrpack: $(DIST)
$(SED) -i 's|version = ".*"|version = "$(VERSION)"|' pack.toml
packwiz modrinth export
git checkout pack.toml
cd $(DIST) && packwiz modrinth export --meta-folder-base $(CURDIR)/ --pack-file $(CURDIR)/pack.toml --yes
git checkout $(CURDIR)/pack.toml
ifeq ($(OUTPUT), testing)
mv $(NAME)-$(VERSION).mrpack $(NAME)-$(OUTPUT).mrpack
mv $(DIST)/$(NAME)-$(VERSION).mrpack $(DIST)/$(NAME)-$(OUTPUT).mrpack
endif

$(NAME)-$(OUTPUT).mrpack.sha256:
$(SHASUM) $(NAME)-$(OUTPUT).mrpack >| $(NAME)-$(OUTPUT).mrpack.sha256
$(DIST)/$(NAME)-$(OUTPUT).mrpack.sha256: $(DIST)
cd $(DIST) && $(SHASUM) $(NAME)-$(OUTPUT).mrpack >| $(NAME)-$(OUTPUT).mrpack.sha256

.PHONY: fetch
fetch: packwiz-installer-bootstrap.jar
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ secretGenerator:
images:
- name: minecraft-server
newName: quay.io/crafthippie/boergers
newTag: 1.0.0
newTag: latest

...
3 changes: 2 additions & 1 deletion docker/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ RUN apt-get update && \

ENV MINECRAFT_LEVEL_TYPE DEFAULT

COPY ./mods/* /usr/share/minecraft/mods
COPY ./mods /usr/share/minecraft/mods
COPY ./config /usr/share/minecraft/config
3 changes: 2 additions & 1 deletion docker/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ RUN apt-get update && \

ENV MINECRAFT_LEVEL_TYPE DEFAULT

COPY ./mods/* /usr/share/minecraft/mods
COPY ./mods /usr/share/minecraft/mods
COPY ./config /usr/share/minecraft/config
2 changes: 1 addition & 1 deletion pack.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "boergers"
author = "Thomas Boerger"
version = "1.0.0"
version = "testing"
pack-format = "packwiz:1.1.0"

[index]
Expand Down

0 comments on commit 207bf25

Please sign in to comment.