diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1f564bfe..46192420 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,9 +1,6 @@ name: Linter on: - workflow_call: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4bdacace..a919070a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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