Skip to content

Commit 03e32da

Browse files
author
M.Notter
committed
Resets deploy routines, except for action version update
1 parent 4d386e3 commit 03e32da

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install deps
3131
run: |
3232
gem install bundler
33-
bundle config set path 'vendor/bundle'
33+
bundle config 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 "SRC_BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
43-
echo "NO_PUSH=--no-push" >> $GITHUB_ENV
42+
echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}"
43+
echo "::set-output name=NO_PUSH::--no-push"
4444
elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc
45-
echo "SRC_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
45+
echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}"
4646
fi
47-
echo "DEPLOY_BRANCH=gh-pages" >> $GITHUB_ENV
47+
echo "::set-output name=DEPLOY_BRANCH::gh-pages"
4848
- name: Deploy website
49-
run: yes | bin/deploy --verbose ${{ env.NO_PUSH }} \
50-
--src ${{ env.SRC_BRANCH }} \
51-
--deploy ${{ env.DEPLOY_BRANCH }}
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 }}

0 commit comments

Comments
 (0)