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