Skip to content

Publish

Publish #4

Workflow file for this run

name: Publish
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Get 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 "{version}={$LATEST_VERSION}" >> $GITHUB_OUTPUT
- name: Compress
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: ./OneWare.Max1000_${{ steps.extract-version.outputs.version }}_all.zip
directory: ./
- uses: ncipollo/[email protected]
with:
artifacts: "./OneWare.Max1000_${{ steps.extract-version.outputs.version }}_all.zip"
tag: ${{ steps.extract-version.outputs.version }}
allowUpdates: true