Skip to content

Commit

Permalink
Move the build to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mscherer committed Jan 4, 2022
1 parent d241834 commit f99321f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-planet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish planet via GitHub Pages
on:
push:
branches:
- master
- main
schedule:
- cron: "0 */6 * * *"

jobs:
build:
name: Deploy planet
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.3'
- name: Run the planet build
run: |
gem install bundler
bundle update --bundler
bundle install
bundle exec middleman build --verbose
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
email: mscherer@localhost
build_dir: build
branch: gh-pages
20 changes: 20 additions & 0 deletions .github/workflows/verify-new-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Verify PR
on:
pull_request:

jobs:
build:
name: Build planet
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.3'
- name: Run the planet build
run: |
gem install bundler
bundle update --bundler
bundle install
bundle exec middleman build --verbose

0 comments on commit f99321f

Please sign in to comment.