Skip to content

Commit

Permalink
chore: setting up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Aug 5, 2023
1 parent ed7fda1 commit 4d7b21d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4d7b21d

Please sign in to comment.