From 855b898f12d488c279a9dac14c7937951af14595 Mon Sep 17 00:00:00 2001 From: Paul McDonald Date: Wed, 13 Nov 2024 00:26:22 +0000 Subject: [PATCH] Re-add workflow --- .github/workflows/release.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..57af02f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,27 @@ +name: Create Release + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Read version from plugin.yaml + id: read_version + run: | + version=$(grep '^version:' plugin.yaml | awk '{print $2}') >> $GITHUB_OUTPUT + + - name: Create release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.read_version.outputs.version }} + release_name: ${{ steps.read_version.outputs.version }}