-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move rewriting stuff from warc2zim to zimscraperlib
- Loading branch information
Showing
43 changed files
with
10,056 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish dev wombat-setup | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish-dev-wombat-setup: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: pyproject.toml | ||
architecture: x64 | ||
|
||
- name: Install dependencies (and project) | ||
run: | | ||
pip install -U pip | ||
pip install -e .[scripts] | ||
- name: Generate rules | ||
run: | | ||
python rules/generate_rules.py | ||
- name: Setup Node.JS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'javascript/package.json' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install JS dependencies | ||
run: yarn install | ||
working-directory: javascript | ||
|
||
- name: Build production JS | ||
run: yarn build-prod | ||
working-directory: javascript | ||
|
||
- name: Upload wombatSetup.js to dev drive | ||
run: | | ||
curl -f -u "${{ secrets.DEV_DRIVE_WEBDAV_CREDENTIALS }}" -T javascript/dist/wombatSetup.js -sw '%{http_code}' "https://dev.kiwix.org/zimscraperlib/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.