Add python-workflow
Build Python Package / build (push) Failing after -42s
Details
Build Python Package / build (push) Failing after -42s
Details
This commit is contained in:
parent
b420578cf5
commit
6077bdb19c
|
@ -0,0 +1,35 @@
|
|||
name: Build Python Package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: python-3.12.3-alpine3.19
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Create and activate virtual environment
|
||||
run: |
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install setuptools discord.py
|
||||
|
||||
- name: Build the package
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
python setup.py sdist
|
||||
|
||||
- name: Archive the package
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: dist
|
||||
path: dist/*.tar.gz
|
Loading…
Reference in New Issue