Skip to content

Commit

Permalink
Add build-dist gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
djcopley committed Dec 20, 2023
1 parent aa40f9c commit 421dd6b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build distribution
run-name: ${{ github.actor }} is building python distribution

on:
push:
branches:
- main
- gh-actions # for testing

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build source distribution
run: python -m build .

- name: Upload distribution to GitHub Releases
uses: actions/upload-artifact@v4
with:
name: shelloracle-dist
path: dist/

0 comments on commit 421dd6b

Please sign in to comment.