lasp/.gitea/workflows/master.yml
J.A. de Jong - ASCEE / Redu-Sone B.V. 03513b6502
Some checks reported warnings
Building and releasing LASP (master branch) / Release-Ubuntu (push) Has been cancelled
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Has been cancelled
With upload and download artifacts - now with yaml syntax correct
2023-10-11 17:23:31 +02:00

44 lines
955 B
YAML

name: Building and releasing LASP (master branch)
on:
push:
branches:
- master
jobs:
Build-Test-Ubuntu:
runs-on: ubuntu-latest
container: ascee/ubuntu_build:latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
pip install build
python3 -m build
pip install dist/lasp*.whl
pytest
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: Build files
path: dist
Release-Ubuntu:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@master
with:
name: my-artifact
path: dist
- name: Release
uses: actions/release-action@main
with:
files: |-
dist/**
api_key: '${{secrets.RELEASE_TOKEN}}'