Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen authored Aug 8, 2024
1 parent 297606a commit 24bd485
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
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

0 comments on commit 24bd485

Please sign in to comment.