Add ten year anniversary post #20
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 | |
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: | |
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: eval "$(rbenv init -)" && rake deploy:photo |