Skip to content

Commit

Permalink
💥 refactor!: SunController is now an independent package
Browse files Browse the repository at this point in the history
  • Loading branch information
esnya committed Jan 26, 2021
1 parent cd05321 commit d25e75b
Show file tree
Hide file tree
Showing 59 changed files with 6,989 additions and 6,976 deletions.
2 changes: 2 additions & 0 deletions .commitlintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extends:
- gitmoji
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release Unity Package

on:
push:
branches:
- master

jobs:
prebuild:
runs-on: ubuntu-latest
outputs:
package_name: ${{steps.package_name.outputs.package_name}}
steps:
- id: package_name
#run: echo "::set-output name=package_name::$(echo ${GITHUB_REPOSITORY##*/}-${GITHUB_REF##*/})"
run: echo "::set-output name=package_name::$(echo ${GITHUB_REPOSITORY##*/})"

release:
needs: prebuild
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci

- run: |
find Assets -name \*.meta > metaList
mkdir dist
cat metaList
- uses: pCYSl5EDgo/create-unitypackage@master
with:
package-path: 'dist/${{needs.prebuild.outputs.package_name}}.unitypackage'
include-files: metaList

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
56 changes: 0 additions & 56 deletions .github/workflows/unitypackage.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules

# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
Expand Down
2 changes: 2 additions & 0 deletions .huskyrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hooks:
commit-msg: commitlint -E HUSKY_GIT_PARAMS
7 changes: 7 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins:
- semantic-release-gitmoji
- - '@semantic-release/github'
- assets:
- path: dist/
branches:
- master
8 changes: 0 additions & 8 deletions Assets/InariUdon/Components/SunController.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Assets/InariUdon/Components/SunController/Animations.meta

This file was deleted.

Loading

0 comments on commit d25e75b

Please sign in to comment.