From 70ce90bed8b1ac4ab847cb9739a42098c9a1fdf7 Mon Sep 17 00:00:00 2001 From: DC23 Date: Wed, 27 Nov 2024 23:29:57 +1100 Subject: [PATCH 1/5] Updating readme with new manifest url, and some shiny badges. #76 --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 85f2c1e..3291da5 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,21 @@ # Basic Fantasy RPG for FoundryVTT +![GitHub Release](https://img.shields.io/github/v/release/orffen/basicfantasyrpg?logo=GitHub&label=Release) +[![Static Badge](https://img.shields.io/badge/Foundry%20Version-v11+-orange?logo=foundry-virtual-tabletop)](https://foundryvtt.com/) +![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/orffen/basicfantasyrpg?logo=GitHub&label=Issues) +![GitHub Issues or Pull Requests by label](https://img.shields.io/github/issues/orffen/basicfantasyrpg/bug?logo=GitHub&label=Open%20Bugs&color=red) +![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/orffen/basicfantasyrpg/total?logo=GitHub&label=Total%20Downloads) +![GitHub Downloads (all assets, latest release)](https://img.shields.io/github/downloads/orffen/basicfantasyrpg/latest/total?logo=GitHub&label=Downloads%3A%20Latest) + This is the [Basic Fantasy RPG](https://www.basicfantasy.org/) system for FoundryVTT. Please also see the [companion compendium module](https://github.com/Stew-rt/basicfantasyrpg-corerules-en), which contains items, spells, monsters etc. for easy use with the system. ## Installation This system is available within FoundryVTT, or you can manually install it by using the manifest link below: -https://raw.githubusercontent.com/orffen/basicfantasyrpg/main/system.json +```html +https://github.com/DC23/basicfantasyrpg/releases/latest/download/system.json +``` ## Usage From 617b306aec3c5a8c227ac4b25830f95acd395e17 Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Wed, 27 Nov 2024 23:32:56 +1100 Subject: [PATCH 2/5] Fix manifest URL in README.md so that it points to main repo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3291da5..774ee95 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This is the [Basic Fantasy RPG](https://www.basicfantasy.org/) system for Foundr This system is available within FoundryVTT, or you can manually install it by using the manifest link below: ```html -https://github.com/DC23/basicfantasyrpg/releases/latest/download/system.json +https://github.com/orffen/basicfantasyrpg/releases/latest/download/system.json ``` ## Usage From cbb758c86c2bbfd7528ef7e153c0ea350385fb31 Mon Sep 17 00:00:00 2001 From: DC23 Date: Thu, 28 Nov 2024 22:03:55 +1100 Subject: [PATCH 3/5] Adding `edited`, `labeled` & `unlabeled` PR types to reduce need for manual workflow runs. This rebuilds release notes when PRs are edited and relabeled. #76 --- .github/workflows/release-drafter.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 888e344..06d8b57 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,10 +7,9 @@ on: # branches to consider in the event; optional, defaults to all branches: - main - # pull_request event is required only for autolabeler pull_request: # Only following types are handled by the action, but one can default to all as well - types: [opened, reopened, synchronize] + types: [edited, labeled, unlabeled, opened, reopened, synchronize] permissions: contents: read From c598c14d17fe837831a159761574c9f5783e9566 Mon Sep 17 00:00:00 2001 From: DC23 Date: Thu, 28 Nov 2024 22:09:24 +1100 Subject: [PATCH 4/5] Updated system.json to make it clear which properties are now filled in by the release building workflow. #76 --- system.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system.json b/system.json index 75ec32b..cab5f5b 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "basicfantasyrpg", "title": "Basic Fantasy RPG", "description": "The Basic Fantasy RPG system for FoundryVTT!", - "version": "r14", + "version": "dev", "compatibility": { "minimum": "11", "verified": "12" @@ -44,7 +44,7 @@ "primaryTokenAttribute": "hitPoints", "secondaryTokenAttribute": null, "url": "https://github.com/orffen/basicfantasyrpg", - "manifest": "https://raw.githubusercontent.com/orffen/basicfantasyrpg/main/system.json", - "download": "https://github.com/orffen/basicfantasyrpg/archive/refs/tags/r14.zip", + "manifest": "Will be populated by release creation workflow", + "download": "Will be populated by release creation workflow", "license": "LICENSE.txt" } \ No newline at end of file From bd3b411830a23856979dcb4b57617363f0f1f8d0 Mon Sep 17 00:00:00 2001 From: DC23 Date: Thu, 28 Nov 2024 22:18:58 +1100 Subject: [PATCH 5/5] Release creation workflow now respects event context settings for draft and pre-release. #76 --- .github/workflows/release-creation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-creation.yml b/.github/workflows/release-creation.yml index 6f50b94..0d45730 100644 --- a/.github/workflows/release-creation.yml +++ b/.github/workflows/release-creation.yml @@ -35,8 +35,8 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} name: ${{ github.event.release.name }} allowUpdates: true # Set this to false if you want to prevent updating existing releases - draft: false - prerelease: false + draft: ${{ github.event.release.draft }} + prerelease: ${{ github.event.release.prerelease }} artifacts: './system.json, ./basicfantasyrpg.zip' tag: ${{ github.event.release.tag_name }} - body: ${{ github.event.release.body }} + body: ${{ github.event.release.body }} \ No newline at end of file