Merge pull request #68 from OpenC3/apis #85
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
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 |