From 4d7b21d90637f764b3eaf6e9bfd961f3bd1d6d36 Mon Sep 17 00:00:00 2001 From: bd_ Date: Sat, 5 Aug 2023 16:37:58 +0900 Subject: [PATCH] chore: setting up CI --- .github/workflows/release.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e8314f7..e02aa4c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,10 +4,12 @@ on: workflow_dispatch: push: branches: main - paths: Packages/com.vrchat.demo-template/** + paths: Packages/nadena.dev.av3-build-framework/** + tags: + - '*' env: - packageName: "com.vrchat.demo-template" + packageName: "nadena.dev.av3-build-framework" permissions: contents: write @@ -19,6 +21,14 @@ jobs: - name: Checkout uses: actions/checkout@v3 + + - name: Reset version + id: reset-version + run: | + git fetch --tags + VERSION_TAG=$(git describe --tags | sed 's/-\([0-9]\+\)-/-alpha.\1./') + jq ".version = \"$VERSION_TAG\"" Packages/${{env.packageName}}/package.json > tmp.$$.json + mv tmp.$$.json Packages/${{env.packageName}}/package.json - name: get version id: version