

⚠ WARNING: This Potentially violates GitHub's Terms of service ⚠ How to upload a YouTube playlist to Anchor.fm using this script? Make sure to specify the mandatory environment variables for logging in to Anchor.fm,įinally, you can do npm start to execute the script. The environment variables that you normally specify in the GitHub action YAML file. env file in the root of this repository so you can put


It is recommended to specify the id of a short YouTube video in episode.json for testing. To run the script locally, you need python3 and ffmpeg to be available in PATH which are used by the npm dependency youtube-dl-exec.Ĭlone the repository and run npm ci to install the exact dependencies that are specified in package-lock.json.Īfter that, you can edit episode.json that is located at the root of this repository. SET_PUBLISH_DATE: true How can I setup for development and use the script locally? In the repository root directory add a episode.json file containing your YouTube video id, e.g.: You can use the latest version of this action from the GitHub Actions marketplace. NOTE: For the script to run successfully its necessary for there to be at least one episode manually published on Anchor.fm, as the steps to publish on a brand new Anchor.fm account are different, and the automation will break. It takes some time to setup the environment before running the script. The action uses a docker image built over Ubuntu. Into this file you need to specify the YouTube id of your video. The action will start every time you push a change on the episode.json file.
