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
+9
-8
No files matched your search
@@ -1,9 +1,6 @@
|
||||
name: Linter
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
|
||||
@@ -4,13 +4,9 @@ on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
uses: iBicha/playlet/.github/workflows/lint.yml@main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: ['lint']
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -28,3 +24,11 @@ jobs:
|
||||
- name: Build Playlet
|
||||
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