Skip to content

Commit

Permalink
minor tweak to the ci pipeline prior to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
11BelowStudio committed Jun 7, 2024
1 parent 09d58ce commit ebae233
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@ jobs:

steps:
- uses: actions/[email protected]

- name: JSON to variables
# see https://github.com/antifree/json-to-variables
# You may pin to the exact commit or the version.
# uses: antifree/json-to-variables@cc8c6394031e145c90f7f9ec909d83df92431fb8
uses: antifree/[email protected]
with:
# The json file.
filename: "./release.json"
# The prefix for variables.
prefix: "mfile"

- name: "create version.txt"
uses: 1arp/[email protected]
# see https://github.com/marketplace/actions/create-a-file
with:
path: 'src/resources'
isAbsolutePath: false
file: 'version.txt'
content: ${{ env.mfile_version }}

- name: Build With Muddler
# You may pin to the exact commit or the version.
Expand All @@ -37,21 +57,10 @@ jobs:
# with:
# merge-multiple: true

- name: JSON to variables
# see https://github.com/antifree/json-to-variables
# You may pin to the exact commit or the version.
# uses: antifree/json-to-variables@cc8c6394031e145c90f7f9ec909d83df92431fb8
uses: antifree/[email protected]
with:
# The json file.
filename: "./release.json"
# The prefix for variables.
prefix: "mfile"

- uses: ncipollo/release-action@v1
# see https://github.com/marketplace/actions/create-release
with:
artifacts: "build/MUDKIP_Mud2.*,release.json"
artifacts: "build/MUDKIP_Mud2.*,src/resources/version.txt"
allowUpdates: true
bodyFile: "./README.md"
tag: ${{ env.mfile_version }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/
.output
oldMudletProfile/
oldMudletProfile/
src/resources/version.txt

0 comments on commit ebae233

Please sign in to comment.