Skip to content

Commit

Permalink
Replaces Travis with GitHub Actions
Browse files Browse the repository at this point in the history
This removes the Travis descriptor and builds using GitHub actions and builds daily
  • Loading branch information
gastaldi committed Nov 12, 2020
1 parent 2c20cc0 commit 20c6ba0
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 31 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
@@ -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 }}

36 changes: 36 additions & 0 deletions .github/workflows/preview.yml
@@ -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 }}"
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions package.json
@@ -0,0 +1,7 @@
{
"name": "quarkusio",
"version": "1.0.0",
"scripts": {
"build": ""
}
}

0 comments on commit 20c6ba0

Please sign in to comment.