-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.48 KB
/
workflow.yaml
File metadata and controls
62 lines (51 loc) · 1.48 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: faces-PyJs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
# Step 1: Check out the repository
- name: Checkout repository
uses: actions/checkout@v2
# Step 2: Set up Python environment
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11.x'
# Step 3: Print Python version and pip version
- name: Print Python version
run: |
python --version
pip --version
# Step 4: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Step 5: Install build tools
- name: Install build tools
run: |
python -m pip install --upgrade build hatchling
# Step 6: Build distribution files
- name: Build distribution
run: |
python -m build
# Step 7: List distribution files
- name: List distribution files
run: |
ls -l dist
# Step 8: Install twine
- name: Install twine
run: |
python -m pip install --upgrade twine
# Step 9: Upload to Test PyPI
- name: Upload
env:
TWINE_USERNAME: ${{ secrets.USERNAME }}
TWINE_PASSWORD: ${{ secrets.API_KEY }}
run: |
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose