Merge pull request #4 from DigitalGeographyLab/3-gh-actions #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab: | |
name: Build main branch | |
on: | |
pull_request: | |
branches: [main] | |
types: [closed] | |
push: | |
branches: [main] | |
workflow_call: | |
jobs: | |
build: | |
name: Build wheel(s) and packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Install build tools | |
run: python -m pip install build | |
- name: Build wheel(s) and packages | |
run: python -m build . | |
- name: Upload built packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: package | |
path: dist/*.* |