fix releases
This commit is contained in:
@@ -13,7 +13,6 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: yarn
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
@@ -21,23 +20,10 @@ jobs:
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Upload Release Asset
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
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
|
||||
file: ./lib/index.js
|
||||
asset_name: plugin.js
|
||||
asset_content_type: application/javascript
|
||||
overwrite: true
|
||||
release_name: "Release ${{ github.ref }}"
|
||||
|
||||
@@ -19,6 +19,8 @@ npm run build
|
||||
## Deploying
|
||||
|
||||
- explain pushing to github to make CI build and create artifacts stablestudio can import
|
||||
|
||||
> you have to grant "Read and write permissions" in the "workflow permissions" section in repository actions settings for the action to work.
|
||||
```
|
||||
git push
|
||||
```
|
||||
Reference in New Issue
Block a user