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 61c21f4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 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,15 @@ jobs:

- name: Checkout
uses: actions/checkout@v3

- name: Reset version
id: reset-version
run: |
git fetch --tags
VERSION_TAG=$(git describe --tags --always| 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
cat Packages/${{env.packageName}}/package.json
- name: get version
id: version
Expand Down

0 comments on commit 61c21f4

Please sign in to comment.