From f1f1e550bc57ed1e803ff451cad025b53940599b Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 12 Feb 2023 09:34:36 -0500 Subject: [PATCH] Update ci (#49) * Update lint.yml * Update release.yml * Update release.yml * Update release.yml * Update release.yml --- .github/workflows/lint.yml | 3 --- .github/workflows/release.yml | 14 +++++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) 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