Skip to content

Commit

Permalink
Merge pull request #14 from Graicc/master
Browse files Browse the repository at this point in the history
Utilla 1.6.5
  • Loading branch information
Graicc authored Jul 28, 2022
2 parents 71f2bfc + 8a9729b commit 0e70dda
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 90 deletions.
24 changes: 24 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Composite action for building mod

name: Build
description: Builds mod

runs:
using: "composite"
steps:
- name: Get working directory
id: wd
uses: Gorilla-Tag-Modding-Group/gorilla-tag-build-tools/actions/working-dir@main

- uses: Gorilla-Tag-Modding-Group/gorilla-tag-build-tools/actions/setup@main
with:
working-dir: ${{ steps.wd.outputs.dir }}

- uses: Gorilla-Tag-Modding-Group/gorilla-tag-build-tools/actions/deps/legoandmars/Utilla@main
with:
output-dir: ${{ steps.wd.outputs.dir }}\Libs

- uses: Gorilla-Tag-Modding-Group/gorilla-tag-build-tools/actions/build@main
with:
working-dir: ${{ steps.wd.outputs.dir }}

8 changes: 8 additions & 0 deletions .github/templates/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- DISC-ONLY # {HUMAN_NAME} {VERSION} -->
Utilla, a Gorilla Tag library.

Changes:
-

**Install using [Monke Mod Manager](https://github.com/DeadlyKitten/MonkeModManager/releases/latest)**
<!-- DISC-ONLY *Or download here: <{REPO}/releases/latest>* -->
89 changes: 0 additions & 89 deletions .github/workflows/auto-build.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Creates a build every commit

name: Auto Build
on:
push:
branches: [master,main]
paths-ignore:
- '**.yml'
- '!.github/workflows/build.yml'
- '**.md'
- '.gitignore'
pull_request:
branches: [master,main]

jobs:
auto-build:
name: Auto Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: Build mod
uses: ./.github/actions/build

- name: Upload mod
uses: Gorilla-Tag-Modding-Group/gorilla-tag-build-tools/actions/upload@main
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Creates a release post when a release is made

name: Publish Release
on:
release:
types: [published]

jobs:
publish-release:
name: Publish Release
runs-on: ubuntu-latest
steps:
- run: sleep 2h
- name: Publish mod
uses: Gorilla-Tag-Modding-Group/gorilla-tag-build-tools/actions/publish@main
with:
webhook-url: ${{ secrets.PUBLISH_WEBHOOK_URL }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Creates a release from a template

name: Make Release
on:
workflow_dispatch:
inputs:
tag:
required: true

jobs:
release:
name: Make Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: Build mod
uses: ./.github/actions/build

- name: Make Release
uses: Gorilla-Tag-Modding-Group/gorilla-tag-build-tools/actions/release@main
with:
tag: ${{ inputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion Utilla/Utilla.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Utilla
{

[BepInPlugin("org.legoandmars.gorillatag.utilla", "Utilla", "1.6.4")]
[BepInPlugin("org.legoandmars.gorillatag.utilla", "Utilla", "1.6.5")]
public class Utilla : BaseUnityPlugin
{
static Events events = new Events();
Expand Down

0 comments on commit 0e70dda

Please sign in to comment.