Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the Travis descriptor and builds using GitHub actions and builds daily Add instructions on how to deploy to Github pages locally
- Loading branch information
Showing
5 changed files
with
72 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build and deploy to GitHub Pages | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-16.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Use GitHub Actions' cache to shorten build times and decrease load on servers | ||
- uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- uses: helaili/jekyll-action@2.0.4 | ||
env: | ||
JEKYLL_PAT: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Surge.sh Preview | ||
|
||
on: | ||
pull_request_target: | ||
# when using teardown: 'true', add default event types + closed event type | ||
types: [opened, synchronize, reopened, closed] | ||
pull_request: | ||
branches: | ||
- develop | ||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Use GitHub Actions' cache to shorten build times and decrease load on servers | ||
- uses: actions/cache@v2.1.3 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Build Jekyll site | ||
uses: jerryjvl/jekyll-build-action@v1 | ||
|
||
- uses: afc163/surge-preview@v1 | ||
id: preview_step | ||
with: | ||
surge_token: ${{ secrets.SURGE_TOKEN }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
dist: _site | ||
teardown: 'true' | ||
build: | | ||
echo Deploying to surge.sh | ||
- name: Get the preview_url | ||
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ _site | |
_bin | ||
setup.sh | ||
.project | ||
.env | ||
|
||
# Vim temp files | ||
*.swp | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters