Skip to content

Commit 922c22f

Browse files
committed
Revert "chore: ci: Improve link checker and deployment"
This reverts commit 85a7e08.
1 parent 049fb9a commit 922c22f

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ permissions:
1010
contents: read
1111
pages: write
1212
id-token: write
13-
issues: write # Add this permission for creating issues
1413

1514
env:
1615
HUGO_ENV: production
@@ -141,61 +140,36 @@ jobs:
141140
path: ./public
142141

143142
link-checker:
144-
runs-on: ubuntu-latest
143+
runs-on: ubuntu-24.04
145144
needs: build
146-
if: github.event_name == 'pull_request' # Only run on pull requests
147145
steps:
148146
- name: Download artifact
149147
uses: actions/download-artifact@v4
150148
with:
151149
name: github-pages
152150
path: ./public
153-
154-
- name: Restore lychee cache
155-
uses: actions/cache@v4
156-
with:
157-
path: ./.lycheecache
158-
key: lychee-cache-${{ github.ref }}
159-
restore-keys: |
160-
lychee-cache-
161-
162151
- name: Link Checker
163-
id: lychee
164-
uses: lycheeverse/lychee-action@v2
152+
uses: lycheeverse/lychee-action@v1.11.0
165153
with:
166-
# Check all HTML files in the downloaded public directory
167154
args: >-
168-
--cache
169-
--max-cache-age 1d
170155
--verbose
171156
--exclude-mail
172157
--exclude-all-private
173158
--exclude 'https://www.linkedin.com/.*'
174159
--exclude 'https://twitter.com/intent/.*'
175160
--exclude 'https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose'
176-
'./public/**/*.html'
177-
fail: false # Do not fail the workflow, create an issue instead
178-
job_summary: true
179-
output: ./lychee-out.md
161+
'./**/*.html'
180162
env:
181163
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
182164

183-
- name: Create Issue From File
184-
if: steps.lychee.outputs.exit_code != 0
185-
uses: peter-evans/create-issue-from-file@v5
186-
with:
187-
title: Link Checker Report
188-
content-filepath: ./lychee-out.md
189-
labels: report, automated, broken-links
190-
191165
deploy:
192166
environment:
193167
name: github-pages
194168
url: ${{ steps.deployment.outputs.page_url }}
195169
runs-on: ubuntu-24.04
196170
needs: build
197171
# Only deploy on pushes to the main branch, not on pull requests
198-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/cache-images')
172+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
199173
steps:
200174
- name: Deploy to GitHub Pages
201175
id: deployment

0 commit comments

Comments
 (0)