Skip to content

Commit 0847838

Browse files
committed
Add Release Pipeline
1 parent 99d53a7 commit 0847838

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
15+
- name: Get Version
16+
id: extract-version
17+
run: |
18+
LATEST_VERSION=$(cat ./oneware-package.json | jq -r '.versions | max_by(.version | split(".") | map(tonumber)) | .version')
19+
echo "Latest version is $LATEST_VERSION"
20+
echo "version=$LATEST_VERSION" >> $GITHUB_OUTPUT
21+
- name: Compress
22+
uses: thedoctor0/zip-release@0.7.1
23+
with:
24+
type: 'zip'
25+
filename: ./OneWare.CoreMax10-${{ steps.extract-version.outputs.version }}-all.zip
26+
directory: ./
27+
exclusions: '*.git* oneware-package.json'
28+
- uses: ncipollo/release-action@v1.14.0
29+
with:
30+
artifacts: "./OneWare.CoreMax10-${{ steps.extract-version.outputs.version }}-all.zip"
31+
tag: ${{ steps.extract-version.outputs.version }}
32+
allowUpdates: true

0 commit comments

Comments
 (0)