mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
Automatically deploy to Heroku on push (#632)
This commit is contained in:
parent
ba2c91414d
commit
9c5dd33432
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -5,19 +5,37 @@ on:
|
|||||||
branches: [main, 'feature.*']
|
branches: [main, 'feature.*']
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
RUBY_VERSION: 2.5.3
|
||||||
|
NODE_VERSION: 16
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit_tests:
|
unit_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
ruby-version: ['2.5.3']
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with: {node-version: 16}
|
with:
|
||||||
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby-version }}
|
ruby-version: ${{ env.RUBY_VERSION }}
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
bundler-cache: true
|
||||||
- run: bundle exec rake test
|
- run: bundle exec rake test
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [unit_tests]
|
||||||
|
if:
|
||||||
|
github.event_name == 'push' &&
|
||||||
|
github.ref == 'refs/heads/main' &&
|
||||||
|
github.repository == 'sass/sass-site'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: akhileshns/heroku-deploy@79ef2ae4ff9b897010907016b268fd0f88561820 # v3.12.12
|
||||||
|
with:
|
||||||
|
heroku_api_key: ${{ secrets.HEROKU_TOKEN }}
|
||||||
|
heroku_app_name: sass-lang
|
||||||
|
heroku_email: sass.bot.beep.boop@gmail.com
|
||||||
|
Loading…
Reference in New Issue
Block a user