Skip to content

Commit f904fd1

Browse files
committed
chore: changes from formatting on save
1 parent 12ca363 commit f904fd1

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

.github/workflows/deploy.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,58 +9,58 @@ on:
99
- rust-1.**
1010

1111
env:
12-
TARGET_BRANCH: 'gh-pages'
13-
SHA: '${{ github.sha }}'
14-
SSH_REPO: '[email protected]:${{ github.repository }}.git'
12+
TARGET_BRANCH: "gh-pages"
13+
SHA: "${{ github.sha }}"
14+
SSH_REPO: "[email protected]:${{ github.repository }}.git"
1515

1616
jobs:
1717
deploy:
1818
runs-on: ubuntu-latest
1919
if: github.repository == 'rust-lang/rust-clippy'
2020

2121
steps:
22-
# Setup
23-
- name: Checkout
24-
uses: actions/checkout@v4
22+
# Setup
23+
- name: Checkout
24+
uses: actions/checkout@v4
2525

26-
- name: Checkout
27-
uses: actions/checkout@v4
28-
with:
29-
ref: ${{ env.TARGET_BRANCH }}
30-
path: 'out'
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
with:
29+
ref: ${{ env.TARGET_BRANCH }}
30+
path: "out"
3131

32-
# Run
33-
- name: Set tag name
34-
if: startswith(github.ref, 'refs/tags/')
35-
run: |
36-
TAG=$(basename ${{ github.ref }})
37-
echo "TAG_NAME=$TAG" >> $GITHUB_ENV
38-
- name: Set beta to true
39-
if: github.ref == 'refs/heads/beta'
40-
run: echo "BETA=true" >> $GITHUB_ENV
32+
# Run
33+
- name: Set tag name
34+
if: startswith(github.ref, 'refs/tags/')
35+
run: |
36+
TAG=$(basename ${{ github.ref }})
37+
echo "TAG_NAME=$TAG" >> $GITHUB_ENV
38+
- name: Set beta to true
39+
if: github.ref == 'refs/heads/beta'
40+
run: echo "BETA=true" >> $GITHUB_ENV
4141

42-
# We need to check out all files that (transitively) depend on the
43-
# structure of the gh-pages branch, so that we're able to change that
44-
# structure without breaking the deployment.
45-
- name: Use deploy files from master branch
46-
run: |
47-
git fetch --no-tags --prune --depth=1 origin master
48-
git checkout origin/master -- .github/deploy.sh util/versions.py util/gh-pages/versions.html
42+
# We need to check out all files that (transitively) depend on the
43+
# structure of the gh-pages branch, so that we're able to change that
44+
# structure without breaking the deployment.
45+
- name: Use deploy files from master branch
46+
run: |
47+
git fetch --no-tags --prune --depth=1 origin master
48+
git checkout origin/master -- .github/deploy.sh util/versions.py util/gh-pages/versions.html
4949
50-
# Generate lockfile for caching to avoid build problems with cached deps
51-
- name: cargo generate-lockfile
52-
run: cargo generate-lockfile
50+
# Generate lockfile for caching to avoid build problems with cached deps
51+
- name: cargo generate-lockfile
52+
run: cargo generate-lockfile
5353

54-
- name: Cache
55-
uses: Swatinem/[email protected]
56-
with:
57-
save-if: ${{ github.ref == 'refs/heads/master' }}
54+
- name: Cache
55+
uses: Swatinem/[email protected]
56+
with:
57+
save-if: ${{ github.ref == 'refs/heads/master' }}
5858

59-
- name: cargo collect-metadata
60-
run: cargo collect-metadata
59+
- name: cargo collect-metadata
60+
run: cargo collect-metadata
6161

62-
- name: Deploy
63-
run: |
64-
eval "$(ssh-agent -s)"
65-
ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
66-
bash .github/deploy.sh
62+
- name: Deploy
63+
run: |
64+
eval "$(ssh-agent -s)"
65+
ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
66+
bash .github/deploy.sh

0 commit comments

Comments
 (0)