feat(post): add DNSSEC domain transfer post #147
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 | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Deep Clone | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: .ruby-version | |
- uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: bundle-use-ruby-ubuntu-${{ hashFiles('.ruby-version') }}-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
bundle-use-ruby-ubuntu-${{ hashFiles('.ruby-version') }}- | |
- name: bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Build site | |
run: JEKYLL_ENV=production bundle exec jekyll build | |
- name: Configure AWS Credentials | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Deploy site | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
export GOPATH=~/go | |
go install github.com/bep/s3deploy/v2@v2.7.0 | |
./deploy.sh |