diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25dac9b..713cdfe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,4 +39,36 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + oclifRelease: + name: Publish for ${{ matrix.os }} + runs-on: ${{ matrix.os }} + needs: [release] + strategy: + matrix: + include: + - os: ubuntu-latest + artifact_name: orchestrator-v0.0.0 + asset_name: orchestrator-v0.0.0-linux-x64 +# - os: windows-latest +# artifact_name: mything.exe +# asset_name: mything-windows-amd64 +# - os: macos-latest +# artifact_name: mything +# asset_name: mything-macos-amd64 + + steps: + - uses: actions/checkout@v2 + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: 1.0.0 + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: dist/deb/${{ matrix.artifact_name }} + asset_name: ${{ matrix.asset_name }} + tag: ${{ steps.previoustag.outputs.tag }} + diff --git a/README.md b/README.md index 476671e..6b09c15 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ $ npm install -g orchestrate-command-status $ orchestrator COMMAND running command... $ orchestrator (-v|--version|version) -orchestrate-command-status/0.0.24-development darwin-x64 node-v16.5.0 +orchestrate-command-status/0.0.0-development darwin-x64 node-v16.5.0 $ orchestrator --help [COMMAND] USAGE $ orchestrator COMMAND diff --git a/package.json b/package.json index 1c02ad3..7cf9157 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "orchestrate-command-status", "description": "Send the sms notification after execution of command", - "version": "0.0.0-development", + "version": "0.0.0", "author": "Ravali Rimmalapudi", "bin": { "orchestrator": "./bin/run"