OsaSoft / youtube-better-subscriptions

This extension for Firefox and Chrome aims to make navigating YouTube's subscription grid easier by allowing users to hide watched videos
GNU General Public License v3.0
122 stars 21 forks source link

Publish extension via Github Actions #162

Closed mocanew closed 1 year ago

mocanew commented 1 year ago

Fixes #158, #61

Scheduled Github actions on public repositories are disabled after 60 days of repo inactivity. To keep the Google token scheduled action active, gautamkrishnar/keepalive-workflow will create a commit on master after 50 days of inactivity.

Since the Chrome web store may require multiple retries, workflow_dispatch was used as workflow_call is allowed to have only 4 nested calls (retries in our case).

Here's what repo settings need to be made for these workflows to work (securely):

  1. Add Protected tags rule for v* here
  2. Add Branch protection rule for master here (make sure Require a pull request before merging is disabled as this will block gautamkrishnar/keepalive-workflow)
    • I strongly recommend enabling Restrict who can push to matching branches for the master branch if it's not already on
  3. Create "12hoursDelay" environment
    • make sure to select "Select Wait timer" with 720 minutes of wait time
  4. Set the following secrets:
Github
Firefox Add-ons

Get Firefox Add-ons keys

Chrome Web Store

Get Google API Keys


I've done no testing, but the workflows were adapted from the article mentioned in a previous comment, so I expect it to work with minimal troubleshooting.

OsaSoft commented 1 year ago