Skip to content

Commit 1dab030

Browse files
authored
Update deploy.yml
1 parent eb362b7 commit 1dab030

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Deploy
33
on:
44
push:
55
branches:
6-
- master
76
- main
7+
- master
88
pull_request:
99
branches:
10-
- master
1110
- main
11+
- master
1212

1313
jobs:
1414
deploy:
@@ -21,11 +21,11 @@ jobs:
2121
- name: Checkout code
2222
uses: actions/checkout@v3
2323

24-
- name: Setup Ruby
24+
- name: Set up Ruby
2525
uses: ruby/setup-ruby@v1
2626
with:
2727
ruby-version: '3.1'
28-
bundler-cache: true # enables built-in caching (you can remove the separate cache step)
28+
bundler-cache: true
2929

3030
- name: Install dependencies
3131
run: |
@@ -34,7 +34,12 @@ jobs:
3434
bundle install --jobs 4 --retry 3
3535
npm install -g mermaid.cli
3636
37-
- name: Setup deploy options
37+
- name: Install ImageMagick
38+
run: |
39+
sudo apt-get update
40+
sudo apt-get install -y imagemagick
41+
42+
- name: Set deploy options
3843
id: setup
3944
run: |
4045
git config --global user.name "GitHub Action"
@@ -51,7 +56,7 @@ jobs:
5156
5257
- name: Deploy website
5358
run: |
54-
yes | bash bin/deploy --verbose \
59+
echo "y" | bash bin/deploy --verbose \
5560
${{ steps.setup.outputs.NO_PUSH }} \
5661
--src ${{ steps.setup.outputs.SRC_BRANCH }} \
5762
--deploy ${{ steps.setup.outputs.DEPLOY_BRANCH }}

0 commit comments

Comments
 (0)