Delay onServer/Instance check by 1t from load and flag setup by 2t fr… #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: zip-and-release | |
on: [ push ] | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: Extract datapack version | |
run: | | |
version=$(awk '/DATAPACK VERSION NUMBER/ { print $5 }' "Brilliance Datapack/data/do2/functions/version.mcfunction") | |
echo "BRILLIANCE_VERSION=${version}" >> "$GITHUB_ENV" | |
- name: Create zip | |
run: cd "Brilliance Datapack" && zip -r brilliance-datapack.zip . | |
- name: Create Github release | |
uses: softprops/action-gh-release@v2 | |
if: github.ref == 'refs/heads/main' | |
with: | |
make_latest: true | |
tag_name: ${{ env.BRILLIANCE_VERSION }} | |
files: | | |
Brilliance Datapack/brilliance-datapack.zip | |
JSON/scoreboards.json | |
JSON/items_json/Cards.json | |
JSON/items_json/Artifacts.json | |
JSON/items_json/Items.json |