Deploy Site #17
Workflow file for this run
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: Deploy Site | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
on: | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- 'Dockerfile' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
container: | |
image: downey/jekyll-env:latest | |
credentials: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
env: | |
GEM_HOME: '/.gem' | |
JEKYLL_ENV: production | |
S3_ID: ${{ secrets.S3_ID }} | |
S3_SECRET: ${{ secrets.S3_SECRET }} | |
BLOG_S3_BUCKET: ${{ secrets.BLOG_S3_BUCKET }} | |
BLOG_CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.BLOG_CLOUDFRONT_DISTRIBUTION_ID }} | |
PHOTO_S3_BUCKET: ${{ secrets.PHOTO_S3_BUCKET }} | |
PHOTO_CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.PHOTO_CLOUDFRONT_DISTRIBUTION_ID }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Deploy Blog | |
run: eval "$(rbenv init -)" && rake deploy:blog | |
# - name: Deploy Photos | |
# run: source /.bashrc && eval "$(rbenv init -)" && rake deploy:photo |