Source of abespodcast.github.io
Made with Publish the Swift static site generator.
- Xcode
- Open
Terminaland typeswiftthen run.- It should enter swift REPL.
- If it doesn't, try installing xcode command line utilities.
- type
:quitto exit swift REPL.
- Publish.
- $
git clone git@github.com:JohnSundell/Publish.git ~/Publish - $
cd ~/Publish - $
make
- $
- Clone this repository.
- $
cdinto abespodcast.github.io - $
publish run- It will compile, then start the local development server at
localhost:8000.
- It will compile, then start the local development server at
- $
swift run
- Double click on
Package.swiftto open it in Xcode. - Open
Sources/Abespodcast/main.swift. - After making changes do
Run / Cmd+R. - Reload
localhost:8000manually.- ( make sure
publsih runis running in terminal )
- ( make sure
- It should load with the changes in a second or so.
- Open the folder in VSCode
- Open the integrated terminal
- $
swift build - $
swift run - SwiftFormat Plugin is recommended
Run command;
- $
publish deploy
Or, make a change and commit to source branch (on github web ui for convenience). Github action will take care of the deployment.
TODO: Setup a web hook trigger for deployment when podcast feed is updated
- Install xcode command line tools:
xcode-select --install. - Fix if xcode command line tools are installed to wrong path: sudo
xcode-select --switch /Applications/Xcode.app/Contents/Developer