Skip to content

Commit

Permalink
Update for 2.14.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacetech committed Dec 14, 2024
1 parent ba415a7 commit 356b9d4
Show file tree
Hide file tree
Showing 15 changed files with 573 additions and 1,068 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
on:
push:
branches:
- main
- master
- development

env:
REPO_NAME: ${{ github.event.repository.name }}
EXTRA_RELEASE_ARGS: ${{ github.ref == 'refs/heads/development' && '--prerelease' || '' }}

jobs:
build_and_release:
name: Build and Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Parse package.json
id: set_var
run: |
content=`cat ./package.json`
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
echo "::set-output name=packageJson::$content"
- run: |
echo "${{fromJson(steps.set_var.outputs.packageJson).version}}"
echo "${{fromJson(steps.set_var.outputs.packageJson).devDependencies['@wayward/types']}}"
typesversion=$(echo ${{fromJson(steps.set_var.outputs.packageJson).devDependencies['@wayward/types']}} | cut -c 2-999)
echo "$typesversion"
echo "TYPES_VERSION=$typesversion" >> $GITHUB_ENV
- name: npm install
run: npm install

- name: npm run build
run: npm run build

- name: zip
run: |
cd ../
zip -r $REPO_NAME.zip $REPO_NAME -x "$REPO_NAME/.git/*" "$REPO_NAME/.github/*" "$REPO_NAME/node_modules/*"
- name: Delete release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
run: |
gh release delete "v$TYPES_VERSION" --cleanup-tag --yes
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "v$TYPES_VERSION" \
--repo="$GITHUB_REPOSITORY" \
--target="${{ github.sha }}" \
--title="v$TYPES_VERSION" \
--generate-notes \
$EXTRA_RELEASE_ARGS \
"../$REPO_NAME.zip#$REPO_NAME.zip"
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
tsconfig.tsbuildinfo
node_modules/
out/
*.tsbuildinfo
tsconfig.watch.json
tsconfig.production.json
3 changes: 3 additions & 0 deletions lang/english.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"modMagicologyYouRanOutOfManaMaterializations": "You ran out of mana for your materializations!",
"modMagicologyYouShootMagicalAttack": "You shoot {0} at a range of {2?{#--COLOR-MAGICAL:{1}}:{1}}."
},
"itemGroup": {
"modMagicologyMagicology": "Magicology"
},
"item": {
"modMagicologyElementalWoodenStaff": [
"elemental wooden staff",
Expand Down
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "Magicology",
"description": "Adds magic to the game, allowing you to cast spells using mana.",
"version": "1.0.2",
"version": "1.0.3",
"author": "Spacetech",
"github": "https://github.com/WaywardGame/magicology",
"waywardVersion": "2.13.0-beta",
"waywardVersion": "2.14.0-beta",
"multiplayer": "compatible",
"file": "out/Magicology.js",
"languages": [
Expand Down
14 changes: 0 additions & 14 deletions out/IMagicology.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions out/IMagicology.js

This file was deleted.

56 changes: 0 additions & 56 deletions out/Magicology.d.ts

This file was deleted.

Loading

0 comments on commit 356b9d4

Please sign in to comment.