Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaTribune committed Nov 18, 2023
2 parents a2cf5ff + 3882a0b commit 3474e50
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Generate Podcast Feeds
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Run Feed Generator
run: python feed.py
- name: Push Repo
run: |
git config user.name zatribune-github-actions
git config user.email zatribune-github-actions@github.com
git add .
git commit -m "Modified by more enhancements"
git push
Binary file added audio/TFIT01.mp3
Binary file not shown.
Binary file added audio/TFIT02.mp3
Binary file not shown.
Binary file added audio/TFIT03.mp3
Binary file not shown.
Binary file added audio/TFIT04.mp3
Binary file not shown.
Binary file added audio/TFIT05.mp3
Binary file not shown.
48 changes: 48 additions & 0 deletions feed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import yaml

import xml.etree.ElementTree as xml_tree

with open("feed.yaml", "r") as file:
yamlData = yaml.safe_load(file)

rssElement = xml_tree.Element(
"rss",
{
"version": "2.0",
"xmlns:itunes": "http://www.itunes.com/dtds/podcast-1.0.dtd",
"xmlns:content": "http://purl.org/rss/1.0/modules/content/",
},
)

channelElement = xml_tree.SubElement(rssElement, "channel")

linkPrefix = yamlData["link"]

xml_tree.SubElement(channelElement, "title").text = yamlData["title"]
xml_tree.SubElement(channelElement, "format").text = yamlData["format"]
xml_tree.SubElement(channelElement, "subtitle").text = yamlData["subtitle"]
xml_tree.SubElement(channelElement, "description").text = yamlData["description"]
xml_tree.SubElement(channelElement, "language").text = yamlData["language"]
xml_tree.SubElement(channelElement, "link").text = linkPrefix

xml_tree.SubElement(channelElement, "itunes:author").text = yamlData["author"]
xml_tree.SubElement(channelElement, "itunes:image", {"href": linkPrefix + yamlData["image"]})
xml_tree.SubElement(channelElement, "itunes:category", {"test": yamlData["category"]})

for item in yamlData['item']:
itemElement=xml_tree.SubElement(channelElement, "item")
xml_tree.SubElement(itemElement, "title").text = item["title"]
xml_tree.SubElement(itemElement, "itunes:author").text = yamlData["author"]
xml_tree.SubElement(itemElement, "description").text = item["description"]
xml_tree.SubElement(itemElement, "itunes:duration").text = item["duration"]
xml_tree.SubElement(itemElement, "pubDate").text = item["published"]

enclosureElement=xml_tree.SubElement(itemElement, "enclosure",{
"url":linkPrefix+item["file"],
"type":"audio/mpeg",
"length":item["length"]

})

outputree = xml_tree.ElementTree(rssElement)
outputree.write("podcast.xml", encoding="UTF-8", xml_declaration=True)
40 changes: 40 additions & 0 deletions feed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
title: Muhammad Ali - Feeds
subtitle: Powered by GitHub Pages
author: Muhammad Ali
description: Testing feeds via GitHub Pages & GitHub Codespaces.
image: /images/soldier_helmet_art.jpg
language: en-us
category: Technology
format: audio/mpeg
link: https://zatribune.github.io
item:
- title: EP01-What's Happening in 2023
description: Ray Villalobos and Content Managers Natalie Pao and Simon St. Laurent discuss what 2023 holds for the future in technology.
published: Thu, 12 Jan 2023 18:00:00 GMT
file: /audio/TFIT01.mp3
duration: 00:00:36
length: 576,324
- title: EP02-What is Generative AI?
description: Pinar Demirdag discusses the fundamentals of generative AI, its practical applications, and future developments as companies create AI strategies in 2023.
published: Thu, 19 Jan 2023 18:00:00 GMT
file: /audio/TFIT02.mp3
duration: 00:00:22
length: 351,963
- title: EP03-How Generative AI Will Change DevOps
description: Jerome Hardaway explores how generative AI can revolutionize the software development process by increasing efficiency, automating repetitive tasks, and creating more sophisticated and innovative solutions.
published: Thu, 26 Jan 2023 18:00:00 GMT
file: /audio/TFIT03.mp3
duration: 00:00:19
length: 305,488
- title: EP04-Building Responsible AI Systems
description: Ayodele Odubela, a Data Scientist, Machine Learning professional and AI Entrepreneur, discusses the ethical issues surrounding the rapid adoption of AI systems, including transparency, minimizing bias, ensuring fairness, and potential ramifications around privacy, security, and governance.
published: Thu, 2 Feb 2023 18:00:00 GMT
file: /audio/TFIT04.mp3
duration: 00:00:29
length: 470,668
- title: EP05-Crafting an AI Strategy For Your Business
description: Andreas Welsch joins this discussion to share insights on crafting an AI strategy for businesses that considers evolving technology, ethics, and legal implications, drawing from his extensive experience in managing stakeholder relationships and leading AI projects across Fortune 500 companies.
published: Thu, 9 Feb 2023 18:00:00 GMT
file: /audio/TFIT05.mp3
duration: 00:00:22
length: 352,587
Binary file added images/soldier_helmet_art.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions podcast.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Muhammad Ali - Feeds</title><format>audio/mpeg</format><subtitle>Powered by GitHub Pages</subtitle><description>Testing feeds via GitHub Pages &amp; GitHub Codespaces.</description><language>en-us</language><link>https://zatribune.github.io</link><itunes:author>Muhammad Ali</itunes:author><itunes:image href="https://zatribune.github.io/images/soldier_helmet_art.jpg" /><itunes:category test="Technology" /><item><title>EP01-What's Happening in 2023</title><itunes:author>Muhammad Ali</itunes:author><description>Ray Villalobos and Content Managers Natalie Pao and Simon St. Laurent discuss what 2023 holds for the future in technology.</description><itunes:duration>00:00:36</itunes:duration><pubDate>Thu, 12 Jan 2023 18:00:00 GMT</pubDate><enclosure url="https://zatribune.github.io/audio/TFIT01.mp3" type="audio/mpeg" length="576,324" /></item><item><title>EP02-What is Generative AI?</title><itunes:author>Muhammad Ali</itunes:author><description>Pinar Demirdag discusses the fundamentals of generative AI, its practical applications, and future developments as companies create AI strategies in 2023.</description><itunes:duration>00:00:22</itunes:duration><pubDate>Thu, 19 Jan 2023 18:00:00 GMT</pubDate><enclosure url="https://zatribune.github.io/audio/TFIT02.mp3" type="audio/mpeg" length="351,963" /></item><item><title>EP03-How Generative AI Will Change DevOps</title><itunes:author>Muhammad Ali</itunes:author><description>Jerome Hardaway explores how generative AI can revolutionize the software development process by increasing efficiency, automating repetitive tasks, and creating more sophisticated and innovative solutions.</description><itunes:duration>00:00:19</itunes:duration><pubDate>Thu, 26 Jan 2023 18:00:00 GMT</pubDate><enclosure url="https://zatribune.github.io/audio/TFIT03.mp3" type="audio/mpeg" length="305,488" /></item><item><title>EP04-Building Responsible AI Systems</title><itunes:author>Muhammad Ali</itunes:author><description>Ayodele Odubela, a Data Scientist, Machine Learning professional and AI Entrepreneur, discusses the ethical issues surrounding the rapid adoption of AI systems, including transparency, minimizing bias, ensuring fairness, and potential ramifications around privacy, security, and governance.</description><itunes:duration>00:00:29</itunes:duration><pubDate>Thu, 2 Feb 2023 18:00:00 GMT</pubDate><enclosure url="https://zatribune.github.io/audio/TFIT04.mp3" type="audio/mpeg" length="470,668" /></item><item><title>EP05-Crafting an AI Strategy For Your Business</title><itunes:author>Muhammad Ali</itunes:author><description>Andreas Welsch joins this discussion to share insights on crafting an AI strategy for businesses that considers evolving technology, ethics, and legal implications, drawing from his extensive experience in managing stakeholder relationships and leading AI projects across Fortune 500 companies.</description><itunes:duration>00:00:22</itunes:duration><pubDate>Thu, 9 Feb 2023 18:00:00 GMT</pubDate><enclosure url="https://zatribune.github.io/audio/TFIT05.mp3" type="audio/mpeg" length="352,587" /></item></channel></rss>

0 comments on commit 3474e50

Please sign in to comment.