diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3f060a..68bd95d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,19 +69,28 @@ jobs: current_version=$(jq -r '.version' package.json) echo "Current version: $current_version" echo "current_version=$current_version" >> $GITHUB_OUTPUT - + + - name: Get latest release tag (no "v" prefix) + id: get_latest_tag + run: | + latest_tag=$(gh release list --limit 1 --exclude-drafts --exclude-pre-releases=false | head -n 1 | awk '{print $1}') + latest_tag_no_v=${latest_tag#v} + echo "latest_tag_no_v=$latest_tag_no_v" >> $GITHUB_OUTPUT + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Update static version numbers run: | - current_version=${{ steps.get_version.outputs.current_version }} + current_version="${{ steps.get_latest_tag.outputs.latest_tag_no_v }}" if [ -f "docs/README.md" ]; then echo "README.md exists. Modifying..." + sed -i \ + -e 's|\(Latest_Version-\)[^-\ ]*\(-lightblue\)|\1'"$current_version"'\2|' \ + -e 's|v[0-9]\+\.[0-9]\+\.[0-9]\+|v'"$current_version"'|g' \ + docs/README.md else echo "README.md was not found. Skipping..." fi - sed -i \ - -e 's|\(Latest_Version-\)[^-\ ]*\(-lightblue\)|\1'$current_version'\2|' \ - -e 's|v[0-9]\+\.[0-9]\+\.[0-9]\+|v'"$current_version"'|g' \ - docs/README.md - name: Update compression badge run: | diff --git a/docs/README.md b/docs/README.md index d748a08..28484c8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -97,7 +97,17 @@

Overview

- Welcome to Blue Marble! Blue Marble is a userscript for the website wplace.live. If you like this userscript, please ⭐ the repository! If you wish to contribute to Blue Marble, check out the CONTRIBUTING.md file in docs/. + Welcome to Blue Marble! Blue Marble is a userscript for the website wplace.live. The purpose of Blue Marble is to allow you to take an image, and layer it onto the canvas! That way, you can easily trace the image of your art, without having to look back and forth between multiple tabs/monitors. In addition, Blue Marble supports some neat extra features such as: +

+ If you like this userscript, please ⭐ the repository! If you wish to contribute to Blue Marble, check out the CONTRIBUTING.md file in docs/. + + Showcase image of Blue Marble template

Installation Instructions

Supported Browsers diff --git a/docs/assets/Showcase1.png b/docs/assets/Showcase1.png new file mode 100644 index 0000000..ef79e3f Binary files /dev/null and b/docs/assets/Showcase1.png differ