diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4b2f183..97fdfccc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,18 +52,18 @@ jobs: - name: Run Analysis on Playlet App run: ./sca-cmd/bin/sca-cmd ./release/playlet.zip --exit error - - name: Delete unstable release + - name: Delete Canary release uses: dev-drprasad/delete-tag-and-release@v1.0 with: - tag_name: unstable + tag_name: canary github_token: ${{ secrets.GH_TOKEN }} - name: Extract changelog run: | latest_release=$(awk 'BEGIN { RS="## \\[" } NR==2 { print "## ["$0 }' CHANGELOG.md) - echo -e "\n$latest_release" >> docs/unstable-changelog.md + echo -e "\n$latest_release" >> docs/canary-changelog.md - - name: Create unstable release - run: gh release create unstable ./release/playlet.zip ./release/playlet-lib.zip --notes-file docs/unstable-changelog.md --prerelease --title unstable + - name: Create Canary release + run: gh release create canary ./release/playlet.zip ./release/playlet-lib.zip --notes-file docs/canary-changelog.md --prerelease --title Canary env: GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a10ffea..f7f95ae4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - A field to indicate when a playlist was last updated - Voice search in search page +### Changed + +- Renamed `Unstable` releases to `Canary` + ## [0.11.0] - 2023-09-10 This version went through a major refactor, which resulted in a different arcitecture of the app to support new features, the rewrite of many pieces, as well as new features. diff --git a/docs/README.md b/docs/README.md index 1459eaa8..6a3cf257 100644 --- a/docs/README.md +++ b/docs/README.md @@ -290,7 +290,7 @@ The developer settings are only visible through the web app. They are found at t For now, it allows you to point to a different Github release other than the default `latest`. -This is mostly useful to QA the `unstable` release in a "production" setting before making it available to all users as the official "latest" version. Consider the `unstable` version a [Canary release](https://en.wikipedia.org/wiki/Feature_toggle#Canary_release) +This is mostly useful to QA the `canary` release (see [Canary release](https://en.wikipedia.org/wiki/Feature_toggle#Canary_release)) in a "production" setting before making it available to all users as the official "latest" version. #### In case of a softlock @@ -306,8 +306,8 @@ This will remove the custom lib, and revert to using default (latest release fro On pull requests, a Github action will run `lint:fix` and `format:fix` and push changes to the PR branch, to keep things tidy. -When merged to main branch, a Github action will build Playlet, run static analysis using Roku's [Static Channel Analysis tool](https://devtools.web.roku.com/#static-channel-analysis-tool), and release a new version tagged `unstable`, with the build artifacts attached, and changelog included. +When merged to main branch, a Github action will build Playlet, run static analysis using Roku's [Static Channel Analysis tool](https://devtools.web.roku.com/#static-channel-analysis-tool), and release a new version tagged `canary`, with the build artifacts attached, and changelog included. -Existing `unstable` release will be removed before creating a new one. +Existing `canary` release will be removed before creating a new one. This makes [Releasing](./RELEASING.md) simpler. diff --git a/docs/RELEASING.md b/docs/RELEASING.md index dca28d4a..a609cd10 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -3,10 +3,10 @@ # Releasing The release process for Playlet is very simple, since most of the work is automated. -The automation makes `unstable` releases. +The automation makes `canary` releases. ```makefile -unstable release + QA = stable version +canary release + QA = stable version ``` These are mostly the steps when releasing a new version: @@ -23,12 +23,12 @@ These are mostly the steps when releasing a new version: - Title: `Release v$VERSION` - Comment: `Release $VERSION \nIt should contain everything planned from #6` - Wait for CI and merge -- Wait for CI on main branch to create the `unstable` release -- Edit `unstable` release +- Wait for CI on main branch to create the `canary` release +- Edit `canary` release - Tag: `v$VERSION` - Title: `v$VERSION` - Body: the content from CHANGELOG.md for this version - - This should be already included, just remove the notes about testing the unstable release + - This should be already included, just remove the notes about testing the canary release - Uncheck `Set as a pre-release` - Check `Set as the latest release` - Click `update release` diff --git a/docs/unstable-changelog.md b/docs/canary-changelog.md similarity index 64% rename from docs/unstable-changelog.md rename to docs/canary-changelog.md index 216d6e02..e7a64b2b 100644 --- a/docs/unstable-changelog.md +++ b/docs/canary-changelog.md @@ -6,6 +6,6 @@ To test this release: - Open Playlet web app in a browser (`http://ROKU_IP_ADDRESS:8888/index.html`) - Go to settings, and scroll down to `Developer settings` -- Set `Playlet Library version` to `unstable` and click `Apply` +- Set `Playlet Library version` to `canary` and click `Apply` - Restart Playlet -- You can verify that you're testing the `unstable` release in the `Info` tab in Playlet or the web app +- You can verify that you're testing the `canary` release in the `Info` tab in Playlet or the web app diff --git a/playlet-web/src/lib/NavBar.svelte b/playlet-web/src/lib/NavBar.svelte index 642706ff..de80aa89 100644 --- a/playlet-web/src/lib/NavBar.svelte +++ b/playlet-web/src/lib/NavBar.svelte @@ -21,9 +21,9 @@ if ( value?.app?.lib_url_type === "custom" && value?.app?.lib_url === - "https://github.com/iBicha/playlet/releases/download/unstable/playlet-lib.zip" + "https://github.com/iBicha/playlet/releases/download/canary/playlet-lib.zip" ) { - version += "-unstable"; + version += "-canary"; } loggedIn = value?.invidious?.logged_in; auth_url = value?.invidious?.auth_url;