Skip to content

Commit eae2ad8

Browse files
author
Nick L. Petroni, Jr
committed
add GitHub Action to build PyPI and source artifacts
1 parent f63f690 commit eae2ad8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build-pypi.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build-pypi
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
- 'release/**'
9+
10+
pull_request:
11+
branches:
12+
- develop
13+
- 'release/**'
14+
15+
jobs:
16+
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Set up Python 3.x
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: '3.x'
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install setuptools wheel
31+
32+
- name: Build PyPi packages
33+
run: |
34+
python setup.py sdist --formats=gztar,zip
35+
python setup.py bdist_wheel
36+
37+
- name: Archive dist
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: volatility3-pypi
41+
path: |
42+
dist/

0 commit comments

Comments
 (0)