Skip to content

Commit 4b90613

Browse files
author
M.Notter
committed
Update deploy.yml
1 parent 377e926 commit 4b90613

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919
- name: Setup Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
2222
ruby-version: '3.0.2'
2323
- name: Enable bundler cache
24-
uses: actions/cache@v2
24+
uses: actions/cache@v3
2525
with:
2626
path: vendor/bundle
2727
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install deps
3131
run: |
3232
gem install bundler
33-
bundle config path vendor/bundle
33+
bundle config set path 'vendor/bundle'
3434
bundle install --jobs 4 --retry 3
3535
npm install -g mermaid.cli
3636
- name: Setup deploy options
@@ -39,13 +39,13 @@ jobs:
3939
git config --global user.name "GitHub Action"
4040
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
4141
if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request
42-
echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}"
43-
echo "::set-output name=NO_PUSH::--no-push"
42+
echo "SRC_BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
43+
echo "NO_PUSH=--no-push" >> $GITHUB_ENV
4444
elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc
45-
echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}"
45+
echo "SRC_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
4646
fi
47-
echo "::set-output name=DEPLOY_BRANCH::gh-pages"
48-
- name: Deploy website
49-
run: yes | bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }}
50-
--src ${{ steps.setup.outputs.SRC_BRANCH }}
51-
--deploy ${{ steps.setup.outputs.DEPLOY_BRANCH }}
47+
echo "DEPLOY_BRANCH=gh-pages" >> $GITHUB_ENV
48+
- name: Deploy website
49+
run: yes | bin/deploy --verbose ${{ env.NO_PUSH }} \
50+
--src ${{ env.SRC_BRANCH }} \
51+
--deploy ${{ env.DEPLOY_BRANCH }}

0 commit comments

Comments
 (0)