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

Feature: build action #78

Merged
merged 3 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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