-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
10 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & 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> |