From 1b657b463d01c399ec05bfc2874be1812a1abd10 Mon Sep 17 00:00:00 2001 From: farling42 Date: Thu, 27 Mar 2025 22:11:15 +0000 Subject: [PATCH 1/3] Update module.json --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index d16ff02..adb0cb7 100644 --- a/module.json +++ b/module.json @@ -29,7 +29,7 @@ ], "url": "#{URL}#", "download": "#{DOWNLOAD}#", - "manifest": "https://github.com/farling42/foundryvtt-socketlib/releases/latest/download/module.json", + "manifest": "#{MANIFEST}#", "readme": "https://github.com/farling42/foundryvtt-socketlib/blob/master/README.md", "changelog": "https://github.com/farling42/foundryvtt-socketlib/blob/master/CHANGELOG.md", "bugs": "https://github.com/farling42/foundryvtt-socketlib/issues" From 46f97039890792158b7f7b6bc903e06762077ec2 Mon Sep 17 00:00:00 2001 From: farling42 Date: Fri, 9 May 2025 17:03:29 +0100 Subject: [PATCH 2/3] Revert "Update module.json" This reverts commit 1b657b463d01c399ec05bfc2874be1812a1abd10. --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index adb0cb7..d16ff02 100644 --- a/module.json +++ b/module.json @@ -29,7 +29,7 @@ ], "url": "#{URL}#", "download": "#{DOWNLOAD}#", - "manifest": "#{MANIFEST}#", + "manifest": "https://github.com/farling42/foundryvtt-socketlib/releases/latest/download/module.json", "readme": "https://github.com/farling42/foundryvtt-socketlib/blob/master/README.md", "changelog": "https://github.com/farling42/foundryvtt-socketlib/blob/master/CHANGELOG.md", "bugs": "https://github.com/farling42/foundryvtt-socketlib/issues" From 212297bcc929eae6e204d2a2bbe7d8a2001b491c Mon Sep 17 00:00:00 2001 From: farling42 Date: Fri, 9 May 2025 17:14:35 +0100 Subject: [PATCH 3/3] Change module.json to work with old location of socketlib --- .github/workflows/main.yml | 33 +++++++-------------------------- module.json | 6 +++--- 2 files changed, 10 insertions(+), 29 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3010038..578cb0f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,36 +72,17 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - - # Extract version embedded in the tag. - # This step expects the tag to be one of the following formats: - # - "v.." (e.g., "v1.2.3") - # - ".." (e.g., "1.2.3") - # - # The version will be used by later steps to fill in the value for the - # "version" key required for a valid module manifest. - - name: Extract Version From Tag - id: get_version - uses: battila7/get-version-action@v2 - - - # Modify "module.json" with values specific to the release. - # Since the values for the "version" and "url" keys aren't known ahead of - # time, the manifest file in the repository is updated with these values. - # - # While this does modify the manifest file in-place, the changes are not - # commited to the repository, and only exist in the action's filesystem. - - name: Modify Module Manifest With Release-Specific Values + # 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: cschleiden/replace-tokens@v1 + uses: microsoft/variable-substitution@v1 with: files: 'module.json' env: - VERSION: ${{steps.get_version.outputs.version-without-v}} - URL: ${{ env.project_url }} - MANIFEST: ${{ env.latest_manifest_url }} - DOWNLOAD: ${{ env.release_module_url }} - + 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 diff --git a/module.json b/module.json index d16ff02..34e4701 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "id": "socketlib", "title": "socketlib", "description": "A library for easier handling of foundry sockets", - "version": "#{VERSION}#", + "version": "1.1.1", "compatibility": { "minimum": "11", "verified": "13.338" @@ -27,8 +27,8 @@ "esmodules": [ "src/socketlib.js" ], - "url": "#{URL}#", - "download": "#{DOWNLOAD}#", + "url": "https://github.com/farling42/foundryvtt-socketlib", + "download": "https://github.com/farling42/foundryvtt-socketlib/releases/download/v1.1.1/module.zip", "manifest": "https://github.com/farling42/foundryvtt-socketlib/releases/latest/download/module.json", "readme": "https://github.com/farling42/foundryvtt-socketlib/blob/master/README.md", "changelog": "https://github.com/farling42/foundryvtt-socketlib/blob/master/CHANGELOG.md",