Update plugin version to 2.2.6 #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: π Publish TapsellPlus Unity Release TAG | |
# Controls when the workflow will run | |
on: push | |
jobs: | |
build: | |
name: βοΈ Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: π οΈ Get Current Date | |
id: date | |
run: | | |
echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: π Checkout branch "master" | |
uses: actions/checkout@v3 | |
with: | |
ref: 'master' | |
- name: π Get Unity Version | |
id: version | |
run: | | |
TAG_VERSION=$(cat ProjectSettings/ProjectSettings.asset | grep "bundleVersion:.*" | awk '{ print $2}') | |
echo "$TAG_VERSION" | |
echo "::set-output name=tag_name::v${TAG_VERSION}" | |
echo "::set-output name=release_name::TapsellPlusUnity-v${TAG_VERSION:-Package}" | |
- name: π’ Prepare Release Notes | |
id: release_notes | |
run: | | |
awk '/^# / {s++} s == 1 {print}' CHANGELOG.md > /tmp/release_notes.md | |
echo "::set-output name=path::/tmp/release_notes.md" | |
- name: ποΈ Create Release + TAG | |
id: release-snapshot | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.version.outputs.tag_name }} | |
name: ${{ steps.version.outputs.release_name }} | |
body: ${{ steps.date.outputs.date }} | |
body_path: ${{ steps.release_notes.outputs.path }} | |
target_commitish: ${{ github.sha }} | |
draft: false | |
prerelease: false | |
generate_release_notes: true | |
files: | | |
release/tapsell-plus-unity-*.unitypackage | |
CHANGELOG.md |