|
16 | 16 | jobs:
|
17 | 17 | deploy:
|
18 | 18 | runs-on: ubuntu-latest
|
19 |
| - if: github.repository == 'rust-lang/rust-clippy' |
| 19 | + if: github.repository == 'blyxyas/rust-clippy' |
20 | 20 |
|
21 | 21 | steps:
|
22 |
| - # Setup |
23 |
| - - name: Checkout |
24 |
| - uses: actions/checkout@v4 |
25 |
| - with: |
26 |
| - # Unsetting this would make so that any malicious package could get our Github Token |
27 |
| - persist-credentials: false |
28 |
| - |
29 |
| - - name: Checkout |
30 |
| - uses: actions/checkout@v4 |
31 |
| - with: |
32 |
| - ref: ${{ env.TARGET_BRANCH }} |
33 |
| - path: 'out' |
34 |
| - # Unsetting this would make so that any malicious package could get our Github Token |
35 |
| - persist-credentials: false |
36 |
| - |
37 | 22 | # Run
|
38 | 23 | - name: Set tag name
|
39 | 24 | if: startswith(github.ref, 'refs/tags/')
|
|
46 | 31 | - name: Set beta to true
|
47 | 32 | if: github.ref == 'refs/heads/beta'
|
48 | 33 | run: echo "BETA=true" >> $GITHUB_ENV
|
49 |
| - |
50 |
| - # We need to check out all files that (transitively) depend on the |
51 |
| - # structure of the gh-pages branch, so that we're able to change that |
52 |
| - # structure without breaking the deployment. |
53 |
| - - name: Use deploy files from master branch |
54 |
| - run: | |
55 |
| - git fetch --no-tags --prune --depth=1 origin master |
56 |
| - git checkout origin/master -- .github/deploy.sh util/versions.py util/gh-pages/versions.html |
57 |
| -
|
58 |
| - # Generate lockfile for caching to avoid build problems with cached deps |
59 |
| - - name: cargo generate-lockfile |
60 |
| - run: cargo generate-lockfile |
61 |
| - |
62 |
| - - name: Cache |
63 |
| - uses: Swatinem/rust-cache@v2 |
64 |
| - with: |
65 |
| - save-if: ${{ github.ref == 'refs/heads/master' }} |
66 |
| - |
67 |
| - - name: cargo collect-metadata |
68 |
| - run: cargo collect-metadata |
69 |
| - |
70 |
| - - name: Deploy |
71 |
| - run: | |
72 |
| - eval "$(ssh-agent -s)" |
73 |
| - ssh-add - <<< "${{ secrets.DEPLOY_KEY }}" |
74 |
| - bash .github/deploy.sh |
0 commit comments