Merge pull request #127 from up9inc/version_cli_bin

Adding version as part of cli/bin
This commit is contained in:
Igor Gov 2021-07-21 11:25:48 +03:00 committed by GitHub
commit 30651c0f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,9 @@ jobs:
COMMIT_HASH=${{ github.sha }} COMMIT_HASH=${{ github.sha }}
- name: Build and Push CLI - name: Build and Push CLI
run: make push-cli SEM_VER='${{ steps.versioning.outputs.version }}' BUILD_TIMESTAMP='${{ steps.version_parameters.outputs.build_timestamp }}' run: make push-cli SEM_VER='${{ steps.versioning.outputs.version }}' BUILD_TIMESTAMP='${{ steps.version_parameters.outputs.build_timestamp }}'
- shell: bash
run: |
echo '${{ steps.versioning.outputs.version }}' >> cli/bin/version.txt
- name: publish - name: publish
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
@ -75,10 +78,4 @@ jobs:
tag: ${{ steps.versioning.outputs.version }} tag: ${{ steps.versioning.outputs.version }}
prerelease: ${{ github.ref != 'refs/heads/main' }} prerelease: ${{ github.ref != 'refs/heads/main' }}
bodyFile: 'cli/bin/README.md' bodyFile: 'cli/bin/README.md'
- shell: bash
run: echo '${{ steps.versioning.outputs.version }}' >> version.txt
- name: Upload version artifact
uses: actions/upload-artifact@v2
with:
name: version
path: version.txt