Skip to content

Commit 282d8a2

Browse files
committed
Release 1.2.0
1 parent 8a5f3a4 commit 282d8a2

File tree

4 files changed

+11
-33
lines changed

4 files changed

+11
-33
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Module CI/CD
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
workflow_dispatch:
5+
branches: [main]
76

87
jobs:
98
build:
@@ -25,40 +24,19 @@ jobs:
2524
- name: Get Version
2625
shell: bash
2726
id: get-version
28-
run: echo "::set-output name=version::$(node ./.github/workflows/get-version.js)"
29-
30-
# Generate changelog for release body
31-
- name: Changelog
32-
id: Changelog
33-
uses: scottbrenner/generate-changelog-action@master
34-
env:
35-
REPO: ${{ github.repository }}
27+
run: |
28+
MODULE_VERSION=$(grep -oP '(?<="version": ")[^"]+' module.json | tr -d '\n')
29+
echo "moduleVersion=$MODULE_VERSION" >> $GITHUB_ENV
3630
3731
# Create a release for this specific version
3832
- name: Create Release
3933
id: create_version_release
4034
uses: ncipollo/release-action@v1
4135
with:
4236
allowUpdates: true # set this to false if you want to prevent updating existing releases
43-
name: ${{ steps.get-version.outputs.version }}
44-
body: |
45-
${{ steps.Changelog.outputs.changelog }}
46-
draft: false
47-
prerelease: false
48-
token: ${{ secrets.GITHUB_TOKEN }}
49-
artifacts: './module.json,./module.zip'
50-
tag: v${{ steps.get-version.outputs.version }}
51-
52-
# Update the 'latest' release
53-
- name: Create Release
54-
id: create_latest_release
55-
uses: ncipollo/release-action@v1
56-
if: endsWith(github.ref, 'master')
57-
with:
58-
allowUpdates: true
59-
name: Latest
37+
name: ${{ env.moduleVersion }}
6038
draft: false
6139
prerelease: false
6240
token: ${{ secrets.GITHUB_TOKEN }}
6341
artifacts: './module.json,./module.zip'
64-
tag: latest
42+
tag: ${{ env.moduleVersion }}

module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "global-progress-clocks",
33
"title": "Global Progress Clocks",
44
"description": "Blades in the Dark style progress clocks that show on the sidebar",
5-
"version": "1.1.0",
5+
"version": "1.2.0",
66
"authors": [
77
{
88
"name": "Supe",
@@ -34,5 +34,5 @@
3434
],
3535
"url": "https://github.com/CarlosFdez/global-progress-clocks",
3636
"manifest": "https://github.com/CarlosFdez/global-progress-clocks/releases/latest/download/module.json",
37-
"download": "https://github.com/CarlosFdez/global-progress-clocks/releases/download/v1.1.0/module.zip"
37+
"download": "https://github.com/CarlosFdez/global-progress-clocks/releases/download/v1.2.0/module.zip"
3838
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "global-progress-clocks",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Blades in the Dark style progress clocks module for Foundry VTT.",
55
"scripts": {
66
"link": "node link-foundry.mjs"

0 commit comments

Comments
 (0)