Skip to content

feat: preview version update #27

feat: preview version update

feat: preview version update #27

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*.*"
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Unity project structure
uses: actions/checkout@v2
with:
repository: trilitech/tezos-unity-sdk-structured
- name: Check out the repo
uses: actions/checkout@v3
with:
path: Assets/TezosUnitySdk
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: "zip"
directory: ./Assets/TezosUnitySdk/
filename: "tezos-unity-sdk.zip"
exclusions: "*.git* *.github*"
- name: Create .unitypackage Files
run: |
echo "Assets/TezosUnitySdk.meta" > unitypackageFiles
mv Assets/TezosUnitySdk/Samples~ Assets/TezosUnitySdk/Samples
find ./Assets/TezosUnitySdk/ -name \*.meta ! -path "./Assets/TezosUnitySdk/Tests*" ! -path "./Assets/TezosUnitySdk/*.md.meta" ! -name "CODEOWNERS" >> unitypackageFiles
- name: Create .unitypackage
uses: cnbrk13/create-unitypackage@master
with:
package-path: 'TezosUnitySdk.unitypackage'
include-files: unitypackageFiles
- name: Parse changelog
id: changelog
uses: mindsers/changelog-reader-action@v2
with:
path: ./Assets/TezosUnitySdk/CHANGELOG.md
version: ${{ github.ref_name }}
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.changelog.outputs.version }}
tag_name: ${{ github.ref_name }}
body: |
## ${{ steps.changelog.outputs.date }}
${{ steps.changelog.outputs.changes }}
prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }}
files: |
./Assets/TezosUnitySdk/tezos-unity-sdk.zip
TezosUnitySdk.unitypackage