Skip to content

Commit

Permalink
fix(cd): Adjust chill dreams to use just (#63)
Browse files Browse the repository at this point in the history
* fix(cd): Adjust chill dreams to use just

- Rename folders

* feat(samples): Add Chill Dreams Sample

* Update create-release pipeline
  • Loading branch information
mammerla authored Dec 19, 2024
1 parent c2c26b8 commit 7af5a4d
Show file tree
Hide file tree
Showing 138 changed files with 18,578 additions and 25,686 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
CI: ""
run: |
pushd "addon_starter/complete"
npm run all
npm run mcaddon
popd
pushd "casual_creator/chill_dreams/complete"
npm run all
npm run mcaddon
popd
- name: Get Package Version
Expand All @@ -70,20 +70,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_samples_release.outputs.upload_url }}
asset_path: ./addon_starter/complete/build/packages/addon_starter_complete.mcaddon
asset_path: ./addon_starter/complete/dist/packages/aop_mobs.mcaddon
asset_name: addon_starter_complete_v${{ steps.get-package-version.outputs.version }}.mcaddon
asset_content_type: application/zip

- name: Upload addon_starter_complete_source_v.zip to node_module release
id: upload_addon_starter_complete_source_v
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_samples_release.outputs.upload_url }}
asset_path: ./addon_starter/complete/build/packages/addon_starter_complete_source.zip
asset_name: addon_starter_complete_source_v${{ steps.get-package-version.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload chill_dreams_complete_v.mcaddon to node_module release
id: chill_dreams_complete_v
Expand All @@ -92,21 +81,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_samples_release.outputs.upload_url }}
asset_path: ./casual_creator/chill_dreams/complete/build/packages/chill_dreams_complete.mcaddon
asset_path: ./casual_creator/chill_dreams/complete/dist/packages/mamm_cds.mcaddon
asset_name: chill_dreams_complete_v${{ steps.get-package-version.outputs.version }}.mcaddon
asset_content_type: application/zip

- name: Upload chill_dreams_complete_source_v.zip to node_module release
id: chill_dreams_complete_source_v
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_samples_release.outputs.upload_url }}
asset_path: ./casual_creator/chill_dreams/complete/build/packages/chill_dreams_complete_source.zip
asset_name: chill_dreams_complete_source_v${{ steps.get-package-version.outputs.version }}.zip
asset_content_type: application/zip


- name: Commit version changes
run: |
VERSION=${{ toJSON(steps.version.outputs.result) }}
Expand Down
3 changes: 3 additions & 0 deletions casual_creator/chill_dreams/1_dream_turkey/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PROJECT_NAME="mamm_cds"
MINECRAFT_PRODUCT="BedrockUWP"
CUSTOM_DEPLOYMENT_PATH=""
19 changes: 9 additions & 10 deletions casual_creator/chill_dreams/1_dream_turkey/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"tabs": false,
"backetSpacing": true,
"arrowParens": "always",
"printWidth": 120,
"endOfLine": "auto"
}
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 120,
"endOfLine": "auto"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "mamm_cds:dream_turkey",
"identifier": "mamm_cds:dream_turkey",
"runtime_identifier": "minecraft:chicken",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
Expand Down
19 changes: 19 additions & 0 deletions casual_creator/chill_dreams/1_dream_turkey/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import minecraftLinting from "eslint-plugin-minecraft-linting";
import tsParser from "@typescript-eslint/parser";
import ts from "@typescript-eslint/eslint-plugin";
export default [
{
files: ["scripts/**/*.ts"],
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
},
plugins: {
ts,
"minecraft-linting": minecraftLinting,
},
rules: {
"minecraft-linting/avoid-unnecessary-command": "error",
},
},
];
Loading

0 comments on commit 7af5a4d

Please sign in to comment.