Skip to content

Commit

Permalink
Update jekyll-build-push-S3-v2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrodziski authored Jan 17, 2024
1 parent 98ca7d2 commit 58ab14f
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/jekyll-build-push-S3-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -42,13 +45,30 @@ jobs:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Use Node.js ${{ matrix.node-version }} (for getting yarn)
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup Tailwind CSS, postcss, etc. using NPM
id: tailwind
run: yarn install
- name: Gem Bundle installation for Jekyll
working-directory: ./landing
run: bundle install
- name: Build with Jekyll
run: |
bundle install
bundle exec jekyll build --destination dist
run: bundle exec jekyll build --destination dist
working-directory: ./landing
env:
JEKYLL_ENV: production
- uses: shallwefootball/s3-upload-action@master
name: Upload landing site to S3
id: S3
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: 'landing/dist'
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 58ab14f

Please sign in to comment.