lasp/.gitea/workflows/master.yml
J.A. de Jong - ASCEE / Redu-Sone B.V. 402425ebd1
Some checks failed
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m45s
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m23s
Test with only release. Removed last line
2023-10-16 14:58:00 +02:00

52 lines
1.2 KiB
YAML

name: Building and releasing LASP (master branch)
on:
push:
branches:
- master
jobs:
Build-Test-Ubuntu:
runs-on: ubuntu-latest
container:
image: ascee/ubuntu_build:latest
volumes:
# Volumes should also be specified in config.yml of the act runner
- lasp_dist:/dist
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
pip install build pytest
python3 -m build
pip install dist/lasp*.whl
pytest
- name: Copy dist
run:
cp -v dist/* /dist
Release-Ubuntu:
runs-on: ubuntu-latest
needs: Build-Test-Ubuntu
container:
volumes:
- lasp_dist:/dist
steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: setup go
# uses: https://github.com/actions/setup-go@v4
# with:
# go-version: '1.18'
- name: Release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
/dist/**
api_key: '${{secrets.RELEASE_TOKEN}}'