# Posting Apple Watch Workouts to Strava (Ⅱ)

After I wrote about this topic 2 weeks ago in my last post, I made a few changes to my setup. First of all, I made some changes to GPXExport so that it would better fit my needs. I collected this changes in a new repo and named it WorkoutExporter. The main change is that WorkoutExporter writes the GPX in a more readable manner1. I also remembered that I experimented in the past with tapiriik in the past.

# Posting Apple Watch Workouts to Strava

Until the latest release to Apple Watch seemed not to be useful to me. But with Apple Watch Series 3 and WatchOS4 several things are fixed. There is no need anymore to carry the phone during exercise and it's possible to access all training data by HealthKit. The battery should last for the usual run or short ride. I expect the watch to last at least for a 10h ride.

# Deployment of a Hugo site on GitHub Pages

GitHub Pages is a nice addition to GitHub which allows you to publish a website without much effort. As I looked around for guidance how to automate the deployment of a Hugo site to GitHub Pages I've only found rather complicated methods. Involving either local publishing with scripts which will publish the generated site to GitHub. Or automated setups which consists of scripts which do git commits over ssh. I went for the automated GitHub Pages deployment with Wercker in the first step.

As the command hugo new does not work for org files I'm using emacs for that task. The code is based on what I found at Peter Smith's which seem to be based on the code from Tohojo. First we've to set the location where the blog source files are. (setq hugo-base-dir "~/Documents/repo/TechBlog/") Then we need the current time in two formats. The first for the name of the file we are creating and the second is used in the frontmatter.