lasp/.gitea/workflows/master.yml
J.A. de Jong - ASCEE / Redu-Sone B.V. 5565b10fb2
Some checks failed
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m53s
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m6s
Upload and download artifact test 2
2023-10-12 16:28:02 +02:00

52 lines
1.1 KiB
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 pytest
python3 -m build
pip install dist/lasp*.whl
pytest
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build_files
path: dist
Release-Ubuntu:
runs-on: ubuntu-latest
needs: Build-Test-Ubuntu
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: build_files
- name: Apparently Golang is required
uses: actions/setup-go@v4
- name: Release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
dist/**
api_key: '${{secrets.RELEASE_TOKEN}}'