diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d174d4a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: Create zip + run: zip -r BoxedDataPack.zip BoxedDataPack/ + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + files: BoxedDataPack.zip + generate_release_notes: true diff --git a/.gitignore b/.gitignore index 2ee914d..9881155 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,5 @@ crashlytics-build.properties fabric.properties .idea/httpRequests .idea/caches/build_file_checksums.ser +/.project +*.zip diff --git a/BoxedDataPack.zip b/BoxedDataPack.zip deleted file mode 100644 index 303871c..0000000 Binary files a/BoxedDataPack.zip and /dev/null differ diff --git a/README.md b/README.md index 0599a51..4900ce9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # BoxedDataPack Advancement Datapack for Boxed Addon -The datapack is the zip file in this repo and should be placed with other datapacks in the main world folder. +Download the latest `BoxedDataPack.zip` from the [Releases page](../../releases/latest) and place it in your world's `datapacks/` folder.