diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 97258ec..2bb2a0a 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -19,18 +19,19 @@ jobs: continue-on-error: false - name: Build + id: build run: make all continue-on-error: true - name: Set Tag Name id: set_tag - run: echo "::set-output name=tag_name::$(date +'%Y%m%d%H%M%S')" + run: echo "tag_name=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV shell: bash - name: Check Build Status id: check_status run: | - if [ "${{ job.status }}" != "success" ] + if [ "${{ steps.build.outcome }}" != "success" ] then echo "One or more steps failed. Skipping release creation." echo "::set-output name=skip_release::true" @@ -38,16 +39,25 @@ jobs: continue-on-error: true - name: Create Release + id: create_release uses: actions/create-release@v1 with: - tag_name: ${{ steps.set_tag.outputs.tag_name }} - release_name: Release ${{ steps.set_tag.outputs.tag_name }} + tag_name: ${{ env.tag_name }} + release_name: Release ${{ env.tag_name }} body: | - Changes in this Release: - - Feature 1 - - Feature 2 + Release ${{ env.tag_name }} draft: false prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: ${{ steps.check_status.outputs.skip_release != 'true' }} + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./cns.grf + asset_name: cns.grf + asset_content_type: binary/octet-stream + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}