lasp/.gitea/workflows/master.yml

52 lines
1.0 KiB
YAML
Raw Normal View History

name: Building and releasing LASP (master branch)
on:
push:
branches:
- master
jobs:
2023-10-11 15:13:59 +00:00
Build-Test-Ubuntu:
runs-on: ubuntu-latest
2023-10-16 11:37:18 +00:00
container:
image: ascee/ubuntu_build:latest
volumes:
2023-10-16 11:44:55 +00:00
- lasp_dist:/dist
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
python3 -m build
2023-10-11 15:13:59 +00:00
pip install dist/lasp*.whl
pytest
2023-10-16 11:37:18 +00:00
- name: Copy dist
run:
cp dist/* /dist
2023-10-12 14:28:02 +00:00
2023-10-11 15:13:59 +00:00
Release-Ubuntu:
runs-on: ubuntu-latest
2023-10-12 14:28:02 +00:00
needs: Build-Test-Ubuntu
2023-10-16 11:37:18 +00:00
container:
volumes:
2023-10-16 11:44:55 +00:00
- lasp_dist:/dist
2023-10-16 11:37:18 +00:00
2023-10-11 15:18:09 +00:00
steps:
2023-10-12 14:28:02 +00:00
2023-10-11 15:26:02 +00:00
- name: Checkout
uses: actions/checkout@v4
2023-10-12 14:28:02 +00:00
2023-10-13 10:30:31 +00:00
- name: Apparently Golang is required (install manually)
run: apt update && apt install -y golang
2023-10-12 14:28:02 +00:00
- name: Release
2023-10-11 16:04:43 +00:00
uses: https://gitea.com/actions/release-action@main
with:
files: |-
2023-10-16 11:37:18 +00:00
/dist/**
api_key: '${{secrets.RELEASE_TOKEN}}'