add GitHub Action to build PyPI and source artifacts

This commit is contained in:
Nick L. Petroni, Jr
2021-01-28 10:01:53 -05:00
parent f63f690b17
commit eae2ad8748
+42
View File
@@ -0,0 +1,42 @@
name: build-pypi
on:
push:
branches:
- master
- develop
- 'release/**'
pull_request:
branches:
- develop
- 'release/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build PyPi packages
run: |
python setup.py sdist --formats=gztar,zip
python setup.py bdist_wheel
- name: Archive dist
uses: actions/upload-artifact@v2
with:
name: volatility3-pypi
path: |
dist/