From aed758101cc46d7cc64994cd9d7a33b5dc5bbdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:01:20 +0200 Subject: [PATCH] prepare release of version 0.1.0 --- .github/workflows/publish.yml | 20 ++++++++++++++++++++ .github/workflows/test.yml | 19 +++++++++++++++++++ CHANGELOG.md | 13 ++++++++++--- Cargo.toml | 2 +- README.md | 6 +++++- 5 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..48e69ee --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Publish + +on: + release: + types: [created] + +jobs: + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + permissions: + contents: read + env: + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + with: + key: publish + - run: cargo publish --token ${CRATES_TOKEN} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..76c276e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Cargo build & test +on: + push: + branches: + - main + - development + - 'releases/**' + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: cargo test --verbose diff --git a/CHANGELOG.md b/CHANGELOG.md index c3f5203..f14d27e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +### Changed + +### Removed + +## [0.1.0] - 2024-10-01 + +### Added + - Functions - without arguments - Raw commands @@ -22,6 +30,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - group - Tags -### Changed - -### Removed +[unreleased]: https://github.com/moritz-hoelting/shulkerscript-lang/compare/v0.1.0...HEAD +[0.1.0]: https://github.com/moritz-hoelting/shulkerscript-lang/releases/tag/v0.1.0 \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 643f3bc..a758929 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ mlua = { version = "0.9.7", features = ["lua54", "vendored"], optional = true } path-absolutize = "3.1.1" pathdiff = "0.2.1" serde = { version = "1.0.197", features = ["derive", "rc"], optional = true } -shulkerbox = { git = "https://github.com/moritz-hoelting/shulkerbox", default-features = false, optional = true, rev = "6e956fbe7438158c6a29c1a92d057f0f3093405a" } +shulkerbox = { version = "0.1.0", default-features = false, optional = true } strsim = "0.11.1" strum = { version = "0.26.2", features = ["derive"] } strum_macros = "0.26.4" diff --git a/README.md b/README.md index cbd219e..13a8eda 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,13 @@ Shulkerscript is a simple, easy-to-use scripting language for Minecraft datapack Add the following to your dependencies in `Cargo.toml`: ```toml [dependencies] -shulkerscript-lang = { git = "https://github.com/moritz-hoelting/shulkerscript-lang" } +shulkerscript = "0.1.0" ``` +## VS Code Extension + +A VS Code extension is available [here](https://marketplace.visualstudio.com/items?itemName=moritz-hoelting.shulkerscript-lang) to provide syntax highlighting and snippets for Shulkerscript files. + ## Features ### Functions