Skip to content

Commit

Permalink
Initial code
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Apr 23, 2020
1 parent 8ba5b5d commit accd1e2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.8

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# action.yml
name: 'Deploy to GH Pages'
description: 'Build the site using Nikola and deploy to GH Pages'
runs:
using: 'docker'
image: 'Dockerfile'
14 changes: 14 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e

echo "REPO: $GITHUB_REPOSITORY"
echo "ACTOR: $GITHUB_ACTOR"

echo '# Install Requirements'
pip install -r requirements.txt
echo '# Build site'
nikola build
echo '# Publish to GitHub Pages'
nikola github_deploy
echo '# Done'

0 comments on commit accd1e2

Please sign in to comment.