Yet another attempt to source .bashrc from deploy action #7
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 -ileo pipefail {0} | |
on: | |
push: | |
branches: | |
- 'main' | |
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: bundle exec rake deploy:blog | |
- name: Deploy Photos | |
run: bundle exec rake deploy:photo |