1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- name: Dev Deploy
- on:
- push:
- branches: [ 'dev' ]
- jobs:
- deploy:
- runs-on: ubuntu-latest
- env:
- ruby-version: 2.5
- steps:
- - uses: actions/checkout@v2
- - name: Set up Ruby
- uses: ruby/setup-ruby@v1
- with:
- ruby-version: ${{ env.ruby-version }}
- - uses: actions/cache@v2
- with:
- path: vendor/bundle
- key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
- restore-keys: |
- gems-${{ runner.os }}-${{ matrix.ruby-version }}-
- gems-${{ runner.os }}-
- - run: bundle config set deployment 'true'
- - name: bundle install
- run: |
- bundle config path vendor/bundle
- bundle install --jobs 4 --retry 3
- - run: bundle exec middleman build
- - name: Push to Docker Hub
- uses: docker/build-push-action@v1
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_ACCESS_KEY }}
- repository: slatedocs/slate
- tag_with_ref: true
- - name: Deploy
- uses: peaceiris/[email protected]
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- destination_dir: dev
- publish_dir: ./build
- keep_files: true
|