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
- Loading branch information
Showing
4 changed files
with
69 additions
and
31 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,26 @@ | ||
name: Build and deploy to GitHub Pages | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
github-pages: | ||
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,36 @@ | ||
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' | ||
|
||
- name: Get the preview_url | ||
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "quarkusio", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"build": "" | ||
} | ||
} |