Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
.github
Browse files Browse the repository at this point in the history
  • Loading branch information
RawDiamondMC committed Dec 10, 2023
1 parent a8040c7 commit 1e9b7f1
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://www.buymeacoffee.com/rawdiamondmc', 'https://afdian.net/a/ctn_studio']
7 changes: 7 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"ignoreDeps": ["net.fabricmc:yarn"]
}
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: build
on: [push,workflow_dispatch]

permissions:
contents: write

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest,]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/[email protected]
with:
fetch-depth: 0
fetch-tags: true

- name: validate gradle wrapper
uses: gradle/[email protected]

- name: setup jdk 21
uses: actions/[email protected]
with:
java-version: 21
distribution: 'temurin'

- name: make gradle wrapper executable
run: chmod +x ./gradlew

- uses: burrunan/gradle-cache-action@v1
with:
gradle-version: wrapper
gradle-distribution-sha-256-sum-warning: false

- name: build
run: ./gradlew cleanBuildFolders

- name: build
run: ./gradlew build

- name: Move the jar
run: ./gradlew move-jar

- name: capture build artifacts
uses: actions/[email protected]
with:
name: Stone Craft beta
path: artifacts

- name: Set latest tag
uses: EndBug/latest-tag@latest

- name: Remove assets
uses: RawDiamondMC/delete-release-assets@v1
with:
tag: latest
deleteOnlyFromDrafts: false

- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./artifacts/*
prerelease: true
tag_name: latest

0 comments on commit 1e9b7f1

Please sign in to comment.