2023-10-11 15:03:55 +00:00
|
|
|
name: Building and releasing LASP (master branch)
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2023-10-11 15:13:59 +00:00
|
|
|
Build-Test-Ubuntu:
|
2023-10-11 15:03:55 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ascee/ubuntu_build:latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2023-10-11 15:24:08 +00:00
|
|
|
pip install build pytest
|
2023-10-11 15:03:55 +00:00
|
|
|
python3 -m build
|
2023-10-11 15:13:59 +00:00
|
|
|
pip install dist/lasp*.whl
|
|
|
|
pytest
|
2023-10-11 15:22:35 +00:00
|
|
|
- name: Upload artifact
|
2023-10-11 15:23:31 +00:00
|
|
|
uses: actions/upload-artifact@master
|
2023-10-11 15:22:35 +00:00
|
|
|
with:
|
|
|
|
name: Build files
|
|
|
|
path: dist
|
2023-10-11 15:13:59 +00:00
|
|
|
Release-Ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
2023-10-11 15:18:09 +00:00
|
|
|
steps:
|
2023-10-11 15:26:02 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2023-10-11 15:23:31 +00:00
|
|
|
- name: Download artifacts
|
|
|
|
uses: actions/download-artifact@master
|
|
|
|
with:
|
|
|
|
name: my-artifact
|
|
|
|
path: dist
|
2023-10-11 15:22:35 +00:00
|
|
|
|
2023-10-11 15:03:55 +00:00
|
|
|
- name: Release
|
2023-10-11 15:13:59 +00:00
|
|
|
uses: actions/release-action@main
|
2023-10-11 15:03:55 +00:00
|
|
|
with:
|
|
|
|
files: |-
|
|
|
|
dist/**
|
|
|
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
|
|
|
|