visit
During the quarantine period, I started an Italian tech live show on YouTube and a podcast on Spotify and Anchor.fm with some of my friends. The show’s called Schrödinger Hat.
We are enjoying a lot creating these content over the web, but we encounter some technical issues. Some of them were minor issues that we managed very well during the time, but then… there was the major issue.- “Should we create a private Anchor.fm API?”
- “Uhm… I heard something about Github Actions, maybe we can automate the whole process by using it”
- “Shut up and let’s start coding.”
{
"id": "nHCXZC2InAA"
}
name: 'Upload Episode from YouTube To Anchor.Fm'
on:
push:
paths:
- episode.json
branches: [master]
jobs:
upload_episode:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Upload Episode from YouTube To Anchor.Fm
uses: Schrodinger-Hat/[email protected]
env:
ANCHOR_EMAIL: ${{ secrets.ANCHOR_EMAIL }}
ANCHOR_PASSWORD: ${{ secrets.ANCHOR_PASSWORD }}
NOTE: you need to set up the secrets for ANCHOR_EMAIL and ANCHOR_PASSWORD. This environment variables are mandatory as they specify the signin account.
every time you push some changes on the episode.json file, it will setup the “YouTube to Anchor.fm” action with your Anchor.fm account (specify in your secrets) that will download the YouTube video specified, convert it into an audio file (best quality) and upload it into your Anchor.fm account
We are hoping that will help other creators that are using the same platform.
I will suggest to Anchor.fm to make some public API to permit to the developers to push the audio file and managing the whole publishing process better.
It is an open source project, feel free to contribute.
Also a feedback, any kind of it, it is really appreciated.