Compare commits

...

18 Commits

Author SHA1 Message Date
farling42 f36851c9c1 Merge branch 'develop' 2025-05-09 17:22:44 +01:00
farling42 212297bcc9 Change module.json to work with old location of socketlib 2025-05-09 17:14:35 +01:00
farling42 46f9703989 Revert "Update module.json"
This reverts commit 1b657b463d.
2025-05-09 17:03:29 +01:00
farling42 1b657b463d Update module.json 2025-03-27 22:11:15 +00:00
Farling 9eb01db4f5 Merge pull request #25 from farling42/develop
Merge new location and working Foundry V13
2025-03-27 22:01:03 +00:00
farling42 c17402a551 Update module.json 2025-03-27 21:58:29 +00:00
farling42 970e99ff92 Update module.json 2025-03-27 21:57:51 +00:00
farling42 ce19c69086 Update module.json 2025-03-27 21:55:18 +00:00
farling42 d2f5edf38e Store hardcoded manifest link in module.json
Older versions use an explicit pointer to module.json in the source tree rather than the version on each release.
2025-03-27 21:52:49 +00:00
farling42 559a45cdef Mark as verified on 13.338 2025-03-27 21:47:48 +00:00
farling42 2fd1060ea8 Update tags in README 2025-03-20 16:19:56 +00:00
farling42 ecbd26a89d Previous fix didn't make any difference, so reverting 2025-03-20 16:17:52 +00:00
farling42 238f7f057a Manual setting of manifest to allow all users to move to new location 2025-03-20 16:14:23 +00:00
farling42 fe527cd944 Ignore lock file and create new release 2025-03-20 16:09:54 +00:00
farling42 0fa4b52704 Add LICENSE file to zip 2025-03-20 16:03:02 +00:00
farling42 6b2deb0392 Fix module.json for release action 2025-03-20 16:00:21 +00:00
farling42 a28ca6cc6d Add new maintainer + add github action file 2025-03-20 15:55:13 +00:00
Farling 5c995983f0 Update links to new location 2025-03-20 14:32:54 +00:00
5 changed files with 151 additions and 11 deletions
+121
View File
@@ -0,0 +1,121 @@
# GitHub Actions workflow for creating a new FoundryVTT module release.
#
# Useful References:
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# - https://docs.github.com/en/actions/learn-github-actions/contexts
# - https://docs.github.com/en/actions/learn-github-actions/environment-variables
#
# Troubleshooting Checklist:
# - Is the module's manifest file valid JSON?
# You can test your manifest file using https://jsonlint.com/.
#
# - Does the module's manifest have all the required keys?
# See https://foundryvtt.com/article/module-development/#manifest for more
# information.
#
# - Are all the proper files and directories being included in the release's
# module archive ("module.zip")?
# Check that the correct files are being passed to the `zip` command run
# in the "Create Module Archive" step below.
#
# - Is the release tag the proper format?
# See the comments for the "Extract Version From Tag" step below.
#
# - Is a GitHub release being published?
# This workflow will only run when a release is published, not when a
# release is updated. Furthermore, note that while a GitHub release will
# (by default) create a repository tag, a repository tag will not create
# or publish a GitHub release.
#
# - Has the module's entry on FoundryVTT's module administration site
# (https://foundryvtt.com/admin) been updated?
#
name: Create Module Files For GitHub Release
env:
# The URL used for the module's "Project URL" link on FoundryVTT's website.
project_url: "https://github.com/${{github.repository}}"
# A URL that will always point to the latest manifest.
# FoundryVTT uses this URL to check whether the current module version that
# is installed is the latest version. This URL should NOT change,
# otherwise FoundryVTT won't be able to perform this check.
latest_manifest_url: "https://github.com/${{github.repository}}/releases/latest/download/module.json"
# The URL to the module archive associated with the module release being
# processed by this workflow.
release_module_url: "https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip"
on:
# Only run this workflow when a release is published.
# To modify this workflow when other events occur, see:
# - https://docs.github.com/en/actions/using-workflows/triggering-a-workflow
# - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
#
# Note that some steps may depend on context variables that are only
# available for release events, so if you add other events, you may need to
# alter other parts of this workflow.
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# Substitute the Manifest and Download URLs in the module.json
- name: Substitute Manifest and Download Links For Versioned Ones
id: sub_manifest_link_version
uses: microsoft/variable-substitution@v1
with:
files: 'module.json'
env:
version: ${{github.event.release.tag_name}}
url: https://github.com/${{github.repository}}
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip
# Create a "module.zip" archive containing all the module's required files.
# If you have other directories or files that will need to be added to
# your packaged module, add them here.
- name: Create Module Archive
run: |
# Note that `zip` will only emit warnings when a file or directory
# doesn't exist, it will not fail.
zip \
`# Options` \
--recurse-paths \
`# The name of the output file` \
./module.zip \
`# The files that will be included.` \
module.json \
LICENSE \
CHANGELOG.md \
README.md \
src/
# Don't forget to add a backslash at the end of the line for any
# additional files or directories!
# Update the GitHub release with the manifest and module archive files.
- name: Update Release With Files
id: create_version_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
name: ${{ github.event.release.name }}
draft: ${{ github.event.release.unpublished }}
prerelease: ${{ github.event.release.prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
+1
View File
@@ -0,0 +1 @@
socketlib.lock
+7 -1
View File
@@ -1,8 +1,14 @@
## 1.1.2
### Compatibility
- Updated for compatibility with Foundry 13 (338).
## 1.1.1
- Update module.json for new location and maintainer.
## 1.1.0 ## 1.1.0
### Compatibility ### Compatibility
- Updated for compatibilty with Foundry 12 (thanks Clemente!) - Updated for compatibilty with Foundry 12 (thanks Clemente!)
## 1.0.13 ## 1.0.13
### Compatibility ### Compatibility
- Verified compatibility with Foundry 11 - Verified compatibility with Foundry 11
+5 -1
View File
@@ -1,4 +1,8 @@
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/staebchenfisch) [![ko-fi](https://img.shields.io/badge/Ko--Fi-farling-success)](https://ko-fi.com/farling)
[![patreon](https://img.shields.io/badge/Patreon-amusingtime-success)](https://patreon.com/amusingtime)
![GitHub License](https://img.shields.io/github/license/farling42/foundryvtt-socketlib)
![Latest Release Download Count](https://img.shields.io/github/downloads/farling42/foundryvtt-socketlib/latest/module.zip)
![Forge installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs&query=package.installs&suffix=%25&url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2Ffoundryvtt-socketlib)
# socketlib # socketlib
A library for simplifying working with foundries sockets. This module does not have any user facing features. You only need to install it if one of the modules you use lists it as a dependency. A library for simplifying working with foundries sockets. This module does not have any user facing features. You only need to install it if one of the modules you use lists it as a dependency.
+16 -8
View File
@@ -2,13 +2,21 @@
"id": "socketlib", "id": "socketlib",
"title": "socketlib", "title": "socketlib",
"description": "A library for easier handling of foundry sockets", "description": "A library for easier handling of foundry sockets",
"version": "1.1.0", "version": "1.1.1",
"compatibility": { "compatibility": {
"minimum": "11", "minimum": "11",
"verified": "12" "verified": "13.338"
}, },
"library": true, "library": true,
"authors": [ "authors": [
{
"name": "Farling",
"url": "https://github.com/farling42",
"email": "foundryvtt@amusingtime.uk",
"discord": "farling",
"ko-fi": "farling",
"patreon": "amusingtime"
},
{ {
"name": "Manuel Vögele", "name": "Manuel Vögele",
"email": "develop@manuel-voegele.de", "email": "develop@manuel-voegele.de",
@@ -19,10 +27,10 @@
"esmodules": [ "esmodules": [
"src/socketlib.js" "src/socketlib.js"
], ],
"url": "https://github.com/manuelVo/foundryvtt-socketlib", "url": "https://github.com/farling42/foundryvtt-socketlib",
"download": "https://github.com/manuelVo/foundryvtt-socketlib/archive/v1.1.0.zip", "download": "https://github.com/farling42/foundryvtt-socketlib/releases/download/v1.1.1/module.zip",
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-socketlib/master/module.json", "manifest": "https://github.com/farling42/foundryvtt-socketlib/releases/latest/download/module.json",
"readme": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/README.md", "readme": "https://github.com/farling42/foundryvtt-socketlib/blob/master/README.md",
"changelog": "https://github.com/manuelVo/foundryvtt-socketlib/blob/master/CHANGELOG.md", "changelog": "https://github.com/farling42/foundryvtt-socketlib/blob/master/CHANGELOG.md",
"bugs": "https://github.com/manuelVo/foundryvtt-socketlib/issues" "bugs": "https://github.com/farling42/foundryvtt-socketlib/issues"
} }