Skip to content

Commit

Permalink
adding mupdate and updating release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gesslar committed Jun 24, 2024
1 parent a4db1c3 commit 4459cd2
Show file tree
Hide file tree
Showing 4 changed files with 587 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,16 @@ jobs:
# The prefix for variables.
prefix: "mfile"

- name: "create version.txt"
uses: 1arp/create-a-file-action@0.4.5
# see https://github.com/marketplace/actions/create-a-file
with:
path: './'
isAbsolutePath: false
file: 'version.txt'
content: ${{ env.mfile_version }}
- name: "create version file"
id: create_version_file
run: |
echo "filename=${{ env.mfile_package }}_version.txt" >> $GITHUB_ENV
echo "${{ env.mfile_version }}" > "${{ env.mfile_package }}_version.txt"
- name: Build With Muddler
# You may pin to the exact commit or the version.
# uses: demonnic/build-with-muddler@a9355b3c4f93553287e0f2d4087508b9f6164225
uses: demonnic/build-with-muddler@v1.4
uses: demonnic/build-with-muddler@main
with:
# Version of muddler to use
muddlerVersion: LATEST # optional, default is LATEST
Expand All @@ -46,7 +43,7 @@ jobs:
- uses: ncipollo/release-action@v1
# see https://github.com/marketplace/actions/create-release
with:
artifacts: "build/${{env.mfile_package}}.mpackage,version.txt"
artifacts: "build/${{ env.mfile_package }}.mpackage,${{ env.filename }}"
allowUpdates: true
bodyFile: "./README.md"
tag: ${{ env.mfile_version }}
22 changes: 22 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Update Mupdate Submodule",
"type": "shell",
"command": "git submodule update --remote && mkdir -p src/resources && cp submodule/Mupdate/Mupdate.lua src/resources/Mupdate.lua",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
},
"runOptions": {
"runOn": "default"
}
}
]
}
2 changes: 1 addition & 1 deletion mfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"package": "ThreshCommandRepeater",
"title": "Repeat the last command sent to the MUD with Ctrl-R (Cmd-R)",
"description": "Threshold Command Repeater Package for Mudlet ",
"version": "1.0.0",
"version": "1.2.0",
"author": "Gesslar@Threshold",
"icon": "griffon-right.jpg",
"dependencies": "",
Expand Down
Loading

0 comments on commit 4459cd2

Please sign in to comment.