Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Update upm-publish.yml #29

Merged
merged 2 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions .github/workflows/upm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
id: verify-changed-files
Expand All @@ -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
Expand All @@ -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}"
14 changes: 7 additions & 7 deletions Assets/BetterSceneManagement/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "com.uurha.betterscenemanagement",
"displayName": "Better Scene Management",
"version": "0.2.53",
"version": "0.2.54",
"unity": "2020.3",
"description": "Scene loader with ability to load and serialize SceneAssets",
"dependencies": {
"com.uurha.bettereditortools": "1.0.59"
"com.uurha.bettereditortools": "1.0.62"
},
"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/BetterSceneManagement",
"documentationUrl": "https://github.com/uurha/BetterSceneManagement/tree/main#readme",
"changelogUrl": "https://github.com/techno-dwarf-works/better-scene-management",
"documentationUrl": "https://github.com/techno-dwarf-works/better-scene-management/tree/main#readme",
"license": "MIT",
"licensesUrl":"https://github.com/uurha/BetterSceneManagement/blob/main/LICENSE",
"licensesUrl":"https://github.com/techno-dwarf-works/better-scene-management/blob/main/LICENSE",
"keywords": [
"scene management",
"extensions",
Expand Down
Loading