Update ci (#49)
* Update lint.yml * Update release.yml * Update release.yml * Update release.yml * Update release.yml
This commit is contained in:
1 parent
fb7a898cfa
commit
f1f1e550bc
2 files changed
+8
-7
No files matched your search
@@ -1,9 +1,6 @@
|
|||||||
name: Linter
|
name: Linter
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,8 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
uses: iBicha/playlet/.github/workflows/lint.yml@main
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: ['lint']
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -28,3 +24,11 @@ jobs:
|
|||||||
- name: Build Playlet
|
- name: Build Playlet
|
||||||
run: npm run build:release:ci
|
run: npm run build:release:ci
|
||||||
|
|
||||||
|
- name: Create unstable release if needed
|
||||||
|
run: gh release view unstable || gh release create unstable --prerelease
|
||||||
|
|
||||||
|
- name: Update unstable release
|
||||||
|
run: gh release edit unstable --notes "This is an automated release." --prerelease --title unstable
|
||||||
|
|
||||||
|
- name: Replace release assets
|
||||||
|
run: gh release upload unstable ./release/playlet.zip ./playlet/src/lib/playlet-lib.zip --clobber
|
||||||
Reference in new issue
Block a user