Skip to content

Commit

Permalink
ci: move license package
Browse files Browse the repository at this point in the history
  • Loading branch information
Hertzole committed Jan 13, 2024
1 parent 56ba8f3 commit b05e5be
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/dev-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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~/"
Expand Down

0 comments on commit b05e5be

Please sign in to comment.