Skip to content

Commit

Permalink
input
Browse files Browse the repository at this point in the history
  • Loading branch information
renzholy committed Jul 4, 2021
1 parent 7c4d3c2 commit 3bda5fa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
# Blogit

Environments:

- GITHUB_TOKEN
- NEXT_PUBLIC_CNAME
- NEXT_PUBLIC_TITLE
- NEXT_PUBLIC_INDEX
- NEXT_PUBLIC_HEADER
- NEXT_PUBLIC_FOOTER

Todos:

- [ ] Dark Mode
- [ ] RSS
- [ ] TOC
17 changes: 17 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@ branding:
runs:
using: 'docker'
image: 'Dockerfile'
inputs:
title:
description: 'Title of site'
required: true
index:
description: 'Index file path'
required: false
default: 'README.md'
cname:
description: 'Hostname of site'
required: false
header:
description: 'Header links'
required: false
footer:
description: 'Footer links'
required: false
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

export NEXT_PUBLIC_REF="${GITHUB_REF}"
export NEXT_PUBLIC_REPOSITORY="${GITHUB_REPOSITORY}"
export NEXT_PUBLIC_CNAME="${INPUT_CNAME}"
export NEXT_PUBLIC_TITLE="${INPUT_TITLE}"
export NEXT_PUBLIC_INDEX="${INPUT_INDEX}"
export NEXT_PUBLIC_HEADER="${INPUT_HEADER}"
export NEXT_PUBLIC_FOOTER="${INPUT_FOOTER}"
cd /app
yarn build
yarn export
Expand Down

0 comments on commit 3bda5fa

Please sign in to comment.