-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.1 KB
/
build.yml
File metadata and controls
48 lines (41 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build PyPI registiry
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: "3"
- uses: actions/checkout@v2
with:
ref: "pages"
- name: Cleanup old build
run: |
mv .git ../.git
rm -rf *
mv ../.git .git
- uses: actions/checkout@v2
with:
ref: "master"
path: "packages"
- run: rm -rf packages/.git
- name: Install dumb-pypi
run: python3 -m pip install dumb-pypi
- name: Build PyPI
run: |
find . -name "*.whl" -printf "%f\n" > ./packages/packages.txt
dumb-pypi \
--package-list ./packages/packages.txt \
--packages-url https://tales-pw.github.io/PyPI/packages/ \
--output-dir .
- name: Update github pages
run: |
git add --all
git config --local user.email "[email protected]"
git config --local user.name "pypi"
git commit -m "rebuild index"
git push