From 24bd485cc106bbce72446f23ca7daebd692c8c70 Mon Sep 17 00:00:00 2001 From: Hendrik Mennen Date: Thu, 8 Aug 2024 10:34:24 +0200 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bc9c35c..66ea7bb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,19 +13,19 @@ jobs: with: submodules: recursive - name: Get Version - id: extract_version + id: extract-version run: | LATEST_VERSION=$(cat ./oneware-package.json | jq -r '.versions | max_by(.version | split(".") | map(tonumber)) | .version') echo "Latest version is $LATEST_VERSION" - echo "{latest_version}={$LATEST_VERSION}" >> $GITHUB_OUTPUT + echo "{version}={$LATEST_VERSION}" >> $GITHUB_OUTPUT - name: Compress uses: thedoctor0/zip-release@0.7.1 with: type: 'zip' - filename: ./OneWare.Max1000_${{ steps.extract_version.outputs.latest_version }}_all.zip + filename: ./OneWare.Max1000_${{ steps.extract-version.outputs.version }}_all.zip directory: ./ - uses: ncipollo/release-action@v1.14.0 with: - artifacts: "./OneWare.Max1000_${{ steps.extract_version.outputs.latest_version }}_all.zip" - tag: ${{ steps.extract_version.outputs.latest_version }} + artifacts: "./OneWare.Max1000_${{ steps.extract-version.outputs.version }}_all.zip" + tag: ${{ steps.extract-version.outputs.version }} allowUpdates: true