diff options
| author | eltrac <hi@eltr.ac> | 2026-02-11 22:01:28 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-02-11 22:01:28 +0800 |
| commit | bb6d3329d8a5b9449ffd48007faebf1d7ea2ddbb (patch) | |
| tree | c14d08196cb7258fcd7669817cbb743c2bb69dc3 /.forgejo/workflows | |
| parent | ed9ccdb2150e62a3543cbf88fd84ddb9246a92bd (diff) | |
refactor: extract data during the building process
external link rank data, hightlights, internal link graph were extracted
using Forgejo Action on every push.
Now they were extracted on every build, not affecting commit history.
Diffstat (limited to '.forgejo/workflows')
| -rw-r--r-- | .forgejo/workflows/extract-data.yml | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/.forgejo/workflows/extract-data.yml b/.forgejo/workflows/extract-data.yml deleted file mode 100644 index cdefd691..00000000 --- a/.forgejo/workflows/extract-data.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Extract Data from Content - -on: - push: - branches: - - master - paths: - - 'content/**/*.md' - - 'scripts/*.go' - workflow_dispatch: - -# Prevent concurrent runs to avoid conflicts -concurrency: - group: data-extraction - cancel-in-progress: true - -jobs: - extract-data: - name: Extract Data from Content - runs-on: docker - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: '1.21' - - - name: Extract highlights - run: go run scripts/extract_highlights.go - - - name: Generate external link rank - run: go run scripts/get_external_link_rank.go - - - name: Generate internal link graph - run: go run scripts/get_internal_link_graph.go - - - name: Commit all data - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: 'chore: update data from scripts' - file_pattern: 'data/highlights.json data/externallinks.json static/link-graph.json' |
