Skip to content

Commit

Permalink
Try a release via tags (created via release page)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Sep 28, 2020
1 parent 8ccabf7 commit b24624b
Showing 1 changed file with 39 additions and 18 deletions.
57 changes: 39 additions & 18 deletions .github/workflows/app_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,28 +440,49 @@ jobs:
name: OpenStudioApplication-${{ env.OS_APP_VERSION }}.${{ github.sha }}-${{ matrix.os }}-Test.xml
path: build/Testing/**/*.xml

- name: Create a release if triggered by a tag
id: create_release_tag
#- name: Create a release if triggered by a tag
#id: create_release_tag
#if: contains(github.ref, 'refs/tags')
#uses: actions/[email protected]
#env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#with:
#tag_name: ${{ github.ref }}
#release_name: Release ${{ github.ref }}
#body: |
#Release Notes pending
#draft: false
#prerelease: true

#- name: Release Asset Glob
#if: contains(github.ref, 'refs/tags')
#uses: shogo82148/actions-upload-release-asset@v1
#env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#with:
#upload_url: ${{ steps.create_release_tag.outputs.upload_url }}
#asset_path: ./OpenStudioApplication-*

- name: Upload Binary installer to release
if: contains(github.ref, 'refs/tags')
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release Notes pending
draft: false
prerelease: true

- name: Release Asset Glob
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ matrix.BINARY_PKG_PATH }}/*.${{ env.BINARY_EXT }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true

- name: Upload TGZ to release
if: contains(github.ref, 'refs/tags')
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release_tag.outputs.upload_url }}
asset_path: ./OpenStudioApplication-*
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ matrix.COMPRESSED_PKG_PATH }}/*.${{ env.COMPRESSED_EXT }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true


- name: Delete binary packages
working-directory: ./build/
Expand Down

0 comments on commit b24624b

Please sign in to comment.