diff --git a/.github/workflows/release-test.yaml b/.github/workflows/release-test.yaml deleted file mode 100644 index 5f705ba..0000000 --- a/.github/workflows/release-test.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: "Release:Test" -on: - push: - tags: - - 'test/**' -permissions: - contents: write - -jobs: - release-plugin: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Unshallow - run: git fetch --prune --unshallow - - name: Define the plugin - id: pluginID - run: | - TAG=$(echo '${{ github.event.ref }}' | awk -F "/" '{print $NF}') - echo "tag=${TAG}" >> $GITHUB_OUTPUT - - PLUGIN=$(echo '${{ github.event.ref }}' | awk -F "/" '{print $(NF-1)}') - echo "plugin=${PLUGIN}" >> $GITHUB_OUTPUT - - name: Test - run: | - echo "plugin/${{ steps.pluginID.outputs.plugin }}/.release_notes/${{ steps.pluginID.outputs.tag }}.md" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2bb9636..1efef9c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: Release +name: "Release:Plugin" on: push: tags: @@ -7,7 +7,7 @@ permissions: contents: write jobs: - goreleaser: + release-plugin: runs-on: ubuntu-latest steps: - name: Checkout @@ -22,8 +22,10 @@ jobs: - name: Define the plugin id: pluginID run: | - echo "plugin=neon" >> $GITHUB_OUTPUT - echo "tag=v0.1.0" >> $GITHUB_OUTPUT + TAG=$(echo '${{ github.event.ref }}' | awk -F "/" '{print $NF}') + echo "tag=${TAG}" >> $GITHUB_OUTPUT + PLUGIN=$(echo '${{ github.event.ref }}' | awk -F "/" '{print $(NF-1)}') + echo "plugin=${PLUGIN}" >> $GITHUB_OUTPUT - name: Tests release notes run: | if [ ! -f plugin/${{ steps.pluginID.outputs.plugin }}/.release_notes/${{ steps.pluginID.outputs.tag }}.md ]; then exit 1; fi