readme & github action build pipeline
This commit is contained in:
43
packages/create-stablestudio-plugin/templates/default/.github/workflows/release.yml
vendored
Normal file
43
packages/create-stablestudio-plugin/templates/default/.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: yarn
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: upload build artifact
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./lib/index.js
|
||||
asset_name: plugin.js
|
||||
asset_content_type: application/javascript
|
||||
@@ -4,6 +4,12 @@ This is a [StableStudio plugin](https://github.com/Stability-AI/StableStudio) bo
|
||||
|
||||
- explain how to get a plugin built
|
||||
|
||||
```
|
||||
yarn build
|
||||
|
||||
npm run build
|
||||
```
|
||||
|
||||
- explain basic outline of functions
|
||||
|
||||
## Learn more
|
||||
@@ -12,4 +18,7 @@ This is a [StableStudio plugin](https://github.com/Stability-AI/StableStudio) bo
|
||||
|
||||
## Deploying
|
||||
|
||||
- explain pushing to github to make CI build and create artifacts stablestudio can import
|
||||
- explain pushing to github to make CI build and create artifacts stablestudio can import
|
||||
```
|
||||
git push
|
||||
```
|
||||
@@ -8,7 +8,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "rimraf lib && rimraf node_modules",
|
||||
"build:types": "ttsc --project tsconfig.json",
|
||||
"build:types": "ttsc",
|
||||
"build:javascript": "tsx scripts/Build.ts",
|
||||
"build": "yarn build:types && yarn build:javascript",
|
||||
"dev": "nodemon --watch src --ext ts,tsx,json --exec \"yarn build\""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": [
|
||||
"src/**/*"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user