From bcaa44cb290a86c0ed543f48c5a30ed119319d75 Mon Sep 17 00:00:00 2001 From: Zephrynis <132010650+zephrynis@users.noreply.github.com> Date: Sat, 5 Apr 2025 13:36:35 +0100 Subject: [PATCH] Create export_ext.yml --- .github/workflows/export_ext.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/export_ext.yml diff --git a/.github/workflows/export_ext.yml b/.github/workflows/export_ext.yml new file mode 100644 index 0000000..37579b9 --- /dev/null +++ b/.github/workflows/export_ext.yml @@ -0,0 +1,35 @@ +name: Create Release + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Extract version from conf.yml + id: get_version + run: | + VERSION=$(sed -n 's/^[[:space:]]*version:[[:space:]]*//p' conf.yml | head -n 1) + echo "Detected version: $VERSION" + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "::set-output name=VERSION::$VERSION" + + - name: Create zip of project files + run: | + zip -r sidebar-${{ env.VERSION }}.blueprint . -x "*.git*" + + - name: Create GitHub Release and Upload Asset + uses: ncipollo/release-action@v1 + with: + tag: "v${{ env.VERSION }}" + release_name: "Release v${{ env.VERSION }}" + body: "Automated release based on version ${{ env.VERSION }}" + draft: false + prerelease: false + assets: sidebar-${{ env.VERSION }}.blueprint