-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.02 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.CoreMax10-${{ steps.extract-version.outputs.version }}-all.zip
directory: ./
exclusions: '*.git* oneware-package.json'
- uses: ncipollo/[email protected]
with:
artifacts: "./OneWare.CoreMax10-${{ steps.extract-version.outputs.version }}-all.zip"
tag: ${{ steps.extract-version.outputs.version }}
allowUpdates: true