Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Mar 25, 2024
0 parents commit 25b6540
Show file tree
Hide file tree
Showing 87 changed files with 2,424 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
19 changes: 19 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>crafthippie/.github//renovate/preset"
],
"packageRules": [
{
"datasources": [
"docker"
],
"updateTypes": [
"major",
"minor",
"patch"
],
"enabled": false
}
]
}
22 changes: 22 additions & 0 deletions .github/scripts/bump-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -eo pipefail

if [ $# -ne 1 ]; then
echo "Usage: ${0} VERSION"
exit 1
fi

VERSION=${1}
shift

ROOT=$(cd "$(dirname "$0")/../.."; pwd)

sed \
-i \
's|newTag:.*|newTag: '${VERSION}'|' \
"${ROOT}/deploy/kubernetes/kustomization.yml"

sed \
-i \
's|version = ".*"|version = "'${VERSION}'"|' \
"${ROOT}/pack.toml"
23 changes: 23 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
commitsOnly: true
anyCommit: true
allowMergeCommits: true
allowRevertCommits: true

types:
- feat
- fix
- docs
- style
- refactor
- perf
- test
- build
- ci
- chore
- revert
- major
- minor
- patch

...
82 changes: 82 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
repository:
name: skyblock
description: Minecraft mod pack Skyblock
homepage: https://crafthippie.github.io/skyblock
topics: docker, image, container, minecraft, server, client

private: false
has_issues: true
has_wiki: false
has_downloads: false

default_branch: master

allow_squash_merge: true
allow_merge_commit: true
allow_rebase_merge: true

allow_update_branch: true
allow_auto_merge: true
delete_branch_on_merge: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

labels:
- name: bug
color: d73a4a
description: Something isn't working
- name: duplicate
color: cfd3d7
description: This issue or pull request already exists
- name: enhancement
color: a2eeef
description: New feature or request
- name: good first issue
color: 7057ff
description: Good for newcomers
- name: help wanted
color: 008672
description: Extra attention is needed
- name: invalid
color: e4e669
description: This doesn't seem right
- name: question
color: d876e3
description: Further information is requested
- name: renovate
color: e99695
description: Automated action from Renovate
- name: wontfix
color: ffffff
description: This will not be worked on
- name: outdated
color: cccccc
description: This is out of scope and outdated

teams:
- name: admins
permission: admin
- name: bots
permission: admin
- name: members
permission: maintain

branches:
- name: master
protection:
required_pull_request_reviews: null
required_status_checks:
strict: true
contexts: []
enforce_admins: false
restrictions:
apps:
- renovate
users: []
teams:
- admins
- bots
- members

...
69 changes: 69 additions & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
name: client

"on":
push:
branches:
- master
tags:
- v*
workflow_dispatch:

jobs:
client:
runs-on: ubuntu-latest

steps:
- name: Checkout source
id: source
uses: actions/checkout@v4

- name: Configure aws
id: aws
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1

- name: Install packwiz
id: packwiz
uses: actionhippie/install-packwiz@v1

- name: Build package
id: package
run: make build

- name: Sign package
id: gpgsign
uses: actionhippie/gpgsign@v1
with:
private_key: ${{ secrets.GNUPG_KEY }}
passphrase: ${{ secrets.GNUPG_PASSWORD }}
detach_sign: true
files: |
dist/*.mrpack
- name: Upload release
id: upload
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
omitBody: true
artifacts: dist/*

- name: Upload version
id: version
if: startsWith(github.ref, 'refs/tags/')
run: |
aws s3 sync dist/ s3://dl.webhippie.de/minecraft/skyblock/${{ github.ref_name }}/
- name: Upload testing
id: testing
if: startsWith(github.ref, 'refs/heads/')
run: |
aws s3 sync dist/ s3://dl.webhippie.de/minecraft/skyblock/testing/
...
Loading

0 comments on commit 25b6540

Please sign in to comment.