Skip to content

Commit 08eeae3

Browse files
Merge pull request #1509 from ojeytonwilliams/feat/migrate-to-actions
feat: deploy via GitHub action
2 parents 3a35f48 + 3c6dda7 commit 08eeae3

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ $default-branch ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-20.04
10+
11+
steps:
12+
- uses: actions/[email protected]
13+
- name: Set up Ruby
14+
uses: ruby/[email protected]
15+
with:
16+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
17+
- name: Run tests
18+
run: bundle exec rake
19+
- name: Deploy to Heroku
20+
uses: akhileshns/[email protected]
21+
with:
22+
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
23+
heroku_app_name: "devdocs"
24+
heroku_email: "[email protected]"
25+
dontuseforce: true # --force should never be necessary
26+
dontautocreate: true # The app exists, it should not be created

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)