Skip to content

1.6.0 prerelease

1.6.0 prerelease #21

Workflow file for this run

# /*************************************************************************************************
# * Copyright 2022 Theai, Inc. (DBA Inworld)
# *
# * Use of this source code is governed by the Inworld.ai Software Development Kit License Agreement
# * that can be found in the LICENSE.md file or at https://www.inworld.ai/sdk-license
# *************************************************************************************************/
name: create-release
on:
push:
tags:
- "v*.*.*"
jobs:
check-version:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: extract-version
run: |
echo "VERSION=$(jq -r '.VersionName' InworldAI/InworldAI.uplugin)" >> $GITHUB_ENV
- name: check-version
run: |
if [[ "${{ github.ref }}" == "refs/tags/v${{ env.VERSION }}" ]]; then
echo "Release version matches InworldAI.uplugin project version ${{ env.VERSION }}"
else
echo "Release version ${{ github.ref }} doesn't match InworldAI.uplugin project version ${{ env.VERSION }}"
return 1
fi
package:
needs: [ check-version ]
uses: ./.github/workflows/package.yml
create-release:
runs-on: ubuntu-latest
needs: [ package ]
steps:
- name: checkout
uses: actions/checkout@v2
- name: extract-version
run: |
echo "VERSION=$(jq -r '.VersionName' InworldAI/InworldAI.uplugin)" >> $GITHUB_ENV
- name: download-package
uses: actions/download-artifact@v2
with:
name: inworld-unreal-sdk
path: InworldAI
- name: zip-release
run: zip -r inworld-unreal-sdk-${{ env.VERSION }}.zip InworldAI/
- name: download-package
uses: actions/download-artifact@v2
with:
name: inworld-unreal-sdk-metahuman
path: InworldMetahuman
- name: zip-release
run: zip -r inworld-unreal-sdk-metahuman-${{ env.VERSION }}.zip InworldMetahuman/
- name: download-package
uses: actions/download-artifact@v2
with:
name: inworld-unreal-sdk-innequin
path: InworldInnequin
- name: zip-release
run: zip -r inworld-unreal-sdk-innequin-${{ env.VERSION }}.zip InworldInnequin/
- name: create-release
uses: softprops/action-gh-release@v1
with:
files: |
inworld-unreal-sdk-${{ env.VERSION }}.zip
inworld-unreal-sdk-metahuman-${{ env.VERSION }}.zip
inworld-unreal-sdk-innequin-${{ env.VERSION }}.zip
fail_on_unmatched_files: true
append_body: true