From 4e17b566c00dea523f40c48fafb15a04c89c2bf7 Mon Sep 17 00:00:00 2001 From: Arcueid Date: Sun, 15 Oct 2023 00:23:45 +0200 Subject: [PATCH 1/2] Update upm-publish.yml --- .github/workflows/upm-publish.yml | 36 +++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/workflows/upm-publish.yml b/.github/workflows/upm-publish.yml index 7290386..79dbe87 100644 --- a/.github/workflows/upm-publish.yml +++ b/.github/workflows/upm-publish.yml @@ -16,19 +16,41 @@ on: type: boolean jobs: + convert_string: + name: Prepare String + runs-on: ubuntu-latest + outputs: + converted_string: ${{ steps.convertString.outputs.convertedString }} + + steps: + - name: Set the original string + id: setOriginalString + run: echo "::set-output name=originalString::${{ github.event.repository.name }}" + + - name: Convert string + id: convertString + run: | + ORIGINAL_STRING="${{ steps.setOriginalString.outputs.originalString }}" + IFS='-' read -ra PARTS <<< "$ORIGINAL_STRING" + RESULT="" + for PART in "${PARTS[@]}"; do + RESULT="${RESULT}$(echo "${PART^}")" + done + echo "::set-output name=convertedString::${RESULT}" + prepare: + needs: convert_string name: Prepare if: ${{ inputs.run_manually }} || github.event.pull_request.merged == true runs-on: ubuntu-latest - steps: - + steps: - uses: actions/checkout@master - name: Copy the README run: | - cp "README.md" "Assets/${{ github.event.repository.name }}/README.md" + cp "README.md" "Assets/${{ needs.convert_string.outputs.converted_string }}/README.md" - name: Copy the LICENSE run: | - cp "LICENSE" "Assets/${{ github.event.repository.name }}/LICENSE" + cp "LICENSE" "Assets/${{ needs.convert_string.outputs.converted_string }}/LICENSE" - name: Verify Changed files uses: tj-actions/verify-changed-files@v11.1 id: verify-changed-files @@ -50,9 +72,11 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} deploy: + needs: + - convert_string + - prepare name: Deploy if: ${{ success() }} - needs: prepare runs-on: ubuntu-latest steps: # Any prerequisite steps @@ -69,7 +93,7 @@ jobs: env: REPO: self BRANCH: upm - FOLDER: Assets/${{ github.event.repository.name }} + FOLDER: Assets/${{ needs.convert_string.outputs.converted_string }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SKIP_EMPTY_COMMITS: true MESSAGE: "{msg}" From e5a11fa04242d5b49900360edd7523af8eadd217 Mon Sep 17 00:00:00 2001 From: Arcueid Date: Sun, 15 Oct 2023 00:24:28 +0200 Subject: [PATCH 2/2] Update package.json --- Assets/BetterExtensions/package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/BetterExtensions/package.json b/Assets/BetterExtensions/package.json index 66687c2..f1723f6 100644 --- a/Assets/BetterExtensions/package.json +++ b/Assets/BetterExtensions/package.json @@ -2,16 +2,16 @@ "name": "com.uurha.betterextensions", "displayName": "Better Extensions", "description": "Unity extensions, serialize extension, async extension, string extension and UI extensions", - "version": "1.1.92", + "version": "1.1.93", "unity": "2020.1", "author": { - "name": "Arcueid D'athemon", - "url": "https://github.com/uurha" + "name": "Better Plugins", + "url": "https://github.com/techno-dwarf-works" }, - "changelogUrl": "https://github.com/uurha/BetterExtensions", - "documentationUrl": "https://github.com/uurha/BetterExtensions/tree/main#readme", + "changelogUrl": "https://github.com/techno-dwarf-works/better-extensions", + "documentationUrl": "https://github.com/techno-dwarf-works/better-extensions/tree/main#readme", "license": "MIT", - "licensesUrl":"https://github.com/uurha/BetterExtensions/blob/main/LICENSE", + "licensesUrl":"https://github.com/techno-dwarf-works/better-extensions/blob/main/LICENSE", "keywords": [ "extensions", "asynchronous"