Skip to content

Commit

Permalink
update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnosal committed Apr 30, 2024
1 parent 0409e6c commit d782394
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'

- name: Ruby gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install Gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundler-cache: true

- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Node packages cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: 19

- name: Install packages
run: npm install
run: |
npm install
bundle install
- name: Build Middleman
run: bundle exec middleman build
Expand Down

0 comments on commit d782394

Please sign in to comment.