1 changed files with 30 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||||
|
name: Deployment |
||||||
|
on: |
||||||
|
push: |
||||||
|
tags: |
||||||
|
- v* |
||||||
|
workflow_dispatch: |
||||||
|
|
||||||
|
jobs: |
||||||
|
deploy: |
||||||
|
runs-on: ubuntu-latest |
||||||
|
steps: |
||||||
|
- uses: actions/checkout@v2 |
||||||
|
- uses: ruby/setup-ruby@v1 |
||||||
|
with: |
||||||
|
ruby-version: '2.7' |
||||||
|
bundler-cache: true |
||||||
|
env: |
||||||
|
BUNDLE_GITHUB__COM: ${{ secrets.BUNDLE_GITHUB__COM }} |
||||||
|
- name: Update bundler |
||||||
|
run: | |
||||||
|
gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)" |
||||||
|
- uses: miloserdow/capistrano-deploy@master |
||||||
|
with: |
||||||
|
target: production |
||||||
|
deploy_key: ${{ secrets.DEPLOY_ENC_KEY }} |
||||||
|
enc_rsa_key_val: ${{ secrets.DEPLOY_ENC_VAL }} |
||||||
|
env: |
||||||
|
SENTRY_API_TOKEN: ${{ secrets.SENTRY_API_TOKEN }} |
||||||
|
SENTRY_ORGANIZATION: ${{ secrets.SENTRY_ORGANIZATION }} |
||||||
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} |
||||||
Loading…
Reference in new issue