based on PR review, tweaking json string for vgpu requests #198
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Workflow | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
make | |
- name: Get code info | |
id: info | |
run: | | |
source scripts/version | |
echo "::set-output name=artifacts_dir::${PWD}/dist/artifacts" | |
echo "::set-output name=version::$(echo $GITHUB_REF | cut -d / -f 3)" | |
echo "::set-output name=base_version::${VERSION}" | |
- name: Generate release info | |
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/master') | |
env: | |
BASE_VERSION: ${{ steps.info.outputs.base_version }} | |
run: | | |
echo "🍻" > release.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
prerelease: true | |
body_path: release.txt | |
files: ${{ steps.info.outputs.artifacts_dir }}/* |