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: - 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 dist/* /dist Release-Ubuntu: runs-on: ubuntu-latest needs: Build-Test-Ubuntu container: volumes: - dist:/dist steps: - name: Checkout uses: actions/checkout@v4 - name: Apparently Golang is required (install manually) run: apt update && apt install -y golang - name: Release uses: https://gitea.com/actions/release-action@main with: files: |- /dist/** api_key: '${{secrets.RELEASE_TOKEN}}'