Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Create publish-to-gh-pages.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
EraYaN committed Sep 15, 2019
1 parent 4fb4366 commit 170a867
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .ci/publish-to-gh-pages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Download the latest release.
curl -s https://api.github.com/repos/jellyfin/jellyfin-docs/releases/latest | grep "browser_download_url.*docs-.*\.tar\.gz" | cut -d : -f 2,3 | tr -d \" | wget -O /tmp/docs.tar.gz -qi -
# Clean any old files
rm -rf docs/

mkdir -p docs/
pushd docs
# Extract the files
tar -xzf /tmp/docs.tar.gz
popd
git add docs/
git commit -m "CI Documentation update"
git push origin

0 comments on commit 170a867

Please sign in to comment.