Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Feature: build action (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
m4reko authored Aug 26, 2022
1 parent 986213a commit b7745a0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will build a wheel and sdist and upload them as an artifact

name: Build wheel and sdist

on:
push:
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install flit
run: |
python -m pip install --upgrade pip
python -m pip install flit
- name: Build
run: |
flit build
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: distribution
path: dist
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: website
name: Build and publish docs

# build the documentation whenever there are new commits on main
on:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Python package

on:
push:
branches: [ "dev" ]
branches: ["dev"]
pull_request:
branches: [ "main", "dev" ]
branches: ["main", "dev"]

jobs:
build:
Expand Down

0 comments on commit b7745a0

Please sign in to comment.