lasp/.gitea/workflows/workflow.yml
J.A. de Jong - ASCEE / Redu-Sone B.V. 592448eea9
Some checks failed
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Failing after 2m41s
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped
Release when tag. That is the only way the release action is working
2023-10-16 15:17:00 +02:00

49 lines
1.0 KiB
YAML

name: Building, testing and releasing LASP if it has a tag
on:
- push
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 and test
run: |
pip install build pytest
python3 -m build
pip install dist/lasp*.whl
pytest
- name: Copy dist files to /dist dir
run:
cp -v dist/* /dist
Release-Ubuntu:
runs-on: ubuntu-latest
needs: Build-Test-Ubuntu
if: startsWith(gitea.ref, 'refs/tags/v')
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}}'