Skip to content

Merge pull request #68 from OpenC3/apis #85

Merge pull request #68 from OpenC3/apis

Merge pull request #68 from OpenC3/apis #85

Workflow file for this run

name: Build OpenC3
on:
push:
branches:
- website
defaults:
run:
working-directory: website
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: website
- name: Checkout OpenC3
uses: actions/checkout@v2
with:
repository: OpenC3/cosmos
ref: main
path: cosmos
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run build
run: bundle exec rake build
- name: Git commit
run: |
git config user.name github-actions
git config user.email [email protected]
git add _site/*
git commit -m "Built site"
git push
- name: Run deploy
run: bundle exec rake deploy