Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f6af41245
|
||
|
|
e45928b82d
|
||
|
|
4c7a4574ab | ||
|
|
1ca4e0bba5
|
||
|
|
ceae378040 | ||
|
|
701d9dc731
|
||
|
|
d9ce28b5fa | ||
|
|
105f9359e3
|
||
|
|
bc2f1354c0 | ||
|
|
13b8d62370
|
||
|
|
8159442e9d | ||
|
|
3d640ebd4d
|
||
|
|
86f42b6552 | ||
|
|
31affff9dd
|
||
|
|
d665a01a1f
|
||
|
|
41a3656d78 |
@@ -2,7 +2,7 @@ name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Animations;
|
||||
using UnityEngine;
|
||||
using AnimatorAsCode.V1;
|
||||
|
||||
namespace AnimatorAsCrab.V1
|
||||
{
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# Import the locally built VPM package into a Unity project.
|
||||
# Usage: just import /path/to/unity-project
|
||||
import unity-proj:
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
pkg="dev.doloro.animator-as-crab"
|
||||
zip=$(ls vpm/dist/$pkg-*.zip 2>/dev/null | head -1)
|
||||
[ -n "$zip" ] || { echo "no zip in vpm/dist/ — run vpm/package.sh first"; exit 1; }
|
||||
target="$unity-proj/Packages/$pkg"
|
||||
rm -rf "$target"
|
||||
mkdir -p "$target"
|
||||
unzip -q -o "$zip" -d "$target"
|
||||
echo "imported $pkg -> $target"
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
"unity": "2019.4",
|
||||
"description": "Writes Animator Controllers from a Rhai script, evaluated by the libaac native library.",
|
||||
"url": "https://git.scug.io/doloro/av3-animation-as-crab/releases/download/v0.1.0/dev.doloro.animator-as-crab-0.1.0.zip",
|
||||
"zipSHA256": "63dc0241af2fd724b3b02572020db15236b00fd8f7931fbfbd22155c235b6017",
|
||||
"zipSHA256": "a2113de469c07b1dd1373fb76bbc90fa9f7a2d4855eca57fa3351c9754821af8",
|
||||
"dependencies": {
|
||||
"com.unity.nuget.newtonsoft-json": "3.2.1"
|
||||
},
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ index_url=${VPM_INDEX_URL:-$host/$project/raw/branch/main/vpm/index.json}
|
||||
release_base=${VPM_RELEASE_BASE:-}
|
||||
|
||||
id=$(jq -r .name "$pkg/package.json")
|
||||
version=$(jq -r .version "$pkg/package.json")
|
||||
version=${VPM_VERSION:-$(jq -r .version "$pkg/package.json")}
|
||||
zip_name="$id-$version.zip"
|
||||
: "${release_base:=$host/$project/releases/download/v$version}"
|
||||
zip_url="$release_base/$zip_name"
|
||||
|
||||
+11
-1
@@ -14,12 +14,22 @@ root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
manifest="$root/csharp/dev.doloro.animator-as-crab/package.json"
|
||||
|
||||
id=$(jq -r .name "$manifest")
|
||||
version=$(jq -r .version "$manifest")
|
||||
version=${VPM_VERSION:-$(jq -r .version "$manifest")}
|
||||
zip="$root/vpm/dist/$id-$version.zip"
|
||||
|
||||
zip_name=$(basename "$zip")
|
||||
[ -f "$zip" ] || { echo "missing $zip; run package.sh first" >&2; exit 1; }
|
||||
|
||||
# Delete existing release with same tag if present (needed for rolling tags like continuous)
|
||||
existing=$(curl -fsS -H "Authorization: token $TOKEN" \
|
||||
"$SERVER/api/v1/repos/$REPO/releases/tags/$TAG" 2>/dev/null || true)
|
||||
if [ -n "$existing" ] && [ "$existing" != 'null' ]; then
|
||||
existing_id=$(jq -r .id <<<"$existing")
|
||||
echo "deleting existing release $existing_id for tag $TAG"
|
||||
curl -fsS -X DELETE -H "Authorization: token $TOKEN" \
|
||||
"$SERVER/api/v1/repos/$REPO/releases/$existing_id"
|
||||
fi
|
||||
|
||||
release=$(curl -fsS -X POST \
|
||||
-H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
|
||||
"$SERVER/api/v1/repos/$REPO/releases" \
|
||||
|
||||
Reference in New Issue
Block a user