From b05e5beabc52876ed455f41c541315ffe62fef20 Mon Sep 17 00:00:00 2001 From: Hertzole Date: Sat, 13 Jan 2024 02:54:16 +0100 Subject: [PATCH] ci: move license package --- .github/workflows/dev-package.yml | 17 ++++++++++++++--- .github/workflows/package.yml | 17 ++++++++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev-package.yml b/.github/workflows/dev-package.yml index d9459d7..8b10362 100644 --- a/.github/workflows/dev-package.yml +++ b/.github/workflows/dev-package.yml @@ -20,15 +20,26 @@ jobs: if [[ -d "Assets/Samples" ]]; then mv "Assets/Samples" /tmp/example fi - mv README.md /tmp/README.md + if [[ -f "README.md" ]]; then + mv README.md /tmp/README.md + fi + if [[ -f "LICENSE.md" ]]; then + mv LICENSE.md /tmp/LICENSE.md + fi git checkout dev-package if [[ -d "/tmp/example" ]]; then mkdir "Samples~" mv /tmp/example/* "Samples~/" git add "Samples~" fi - mv /tmp/README.md README.md - git add README.md + if [[ -f "/tmp/LICENSE.md" ]]; then + mv /tmp/LICENSE.md LICENSE.md + git add LICENSE.md + fi + if [[ -f "/tmp/README.md" ]]; then + mv /tmp/README.md README.md + git add README.md + fi if [[ -d "Tests" ]]; then rm -rf Tests rm -f Tests.meta diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c35d575..bc0a082 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -25,10 +25,21 @@ jobs: if [[ -d "Assets/Samples" ]]; then mv "Assets/Samples" /tmp/example fi - mv README.md /tmp/README.md + if [[ -f "README.md" ]]; then + mv README.md /tmp/README.md + fi + if [[ -f "LICENSE.md" ]]; then + mv LICENSE.md /tmp/LICENSE.md + fi git checkout package - mv /tmp/README.md README.md - git add README.md + if [[ -f "/tmp/LICENSE.md" ]]; then + mv /tmp/LICENSE.md LICENSE.md + git add LICENSE.md + fi + if [[ -f "/tmp/README.md" ]]; then + mv /tmp/README.md README.md + git add README.md + fi if [[ -d "/tmp/example" ]]; then mkdir "Samples~" mv /tmp/example/* "Samples~/"