From bb48b3e293edc14447174bf9cf49b7d1e980c159 Mon Sep 17 00:00:00 2001 From: Nix <75538775+nixietab@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:13:19 -0300 Subject: [PATCH] Update Build.yml --- .github/workflows/Build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 7ff152b..9476501 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -34,3 +34,22 @@ jobs: - name: Run picoBuild.py script run: | python actions-temp/picoBuild.py + + - name: Read version and name from version.json + id: version + run: | + VERSION=$(jq -r '.version' version.json) + NAME=$(jq -r '.name' version.json) + echo "VERSION=$VERSION" >> $GITHUB_ENV # Store version in the environment variable + echo "NAME=$NAME" >> $GITHUB_ENV # Store name in the environment variable + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: actions-temp/build/2hsu.exe # Specify the path to the file to upload + + - name: Tag release + run: | + VERSION_NAME="${VERSION} ${NAME}" + git tag -a "v${VERSION}" -m "Release ${VERSION_NAME}" # Tag the release with version number and name + git push origin "v${VERSION}" # Push the tag to GitHub