Skip to content

Commit

Permalink
add automatic release generator workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Feb 15, 2022
1 parent 770a9f7 commit ecbe591
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/GenerateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
default: ''

env:
# [PROJECT_NAME]
# Currently this is used for the following scenarios:
# - Executable Name
# - Build Subdirectory Name
# - Archive Name Prefix
PROJECT_NAME: 'conv2'
BUILD_TYPE: Release

jobs:
Expand Down Expand Up @@ -87,23 +93,23 @@ jobs:
- name: Create Archive (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
cd "${{github.workspace}}/build/ARRCON"
Compress-Archive ARRCON.exe ARRCON-$(.\ARRCON -vq)-Windows.zip
cd "${{github.workspace}}/build/${{env.PROJECT_NAME}}"
Compress-Archive "${{env.PROJECT_NAME}}.exe" "${{env.PROJECT_NAME}}-$(.\${{env.PROJECT_NAME}} -vq)-Windows.zip"
shell: powershell
# Linux / macOS
- name: Create Archive (Linux/macOS)
if: ${{ runner.os != 'Windows' }}
run: |
cd "${{github.workspace}}/build/ARRCON"
zip -T9 ARRCON-$(./ARRCON -vq)-${{runner.os}}.zip ARRCON
cd "${{github.workspace}}/build/${{env.PROJECT_NAME}}"
zip -T9 "${{env.PROJECT_NAME}}-$(./${{env.PROJECT_NAME}} -vq)-${{runner.os}}.zip" "${{env.PROJECT_NAME}}"
shell: bash

# Upload Artifact
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: latest-${{runner.os}}
path: '${{github.workspace}}/build/ARRCON/*.zip'
path: '${{github.workspace}}/build/${{env.PROJECT_NAME}}/*.zip'
#:create-binaries

create-release:
Expand Down

0 comments on commit ecbe591

Please sign in to comment.