Use a volume to share state
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Failing after 2m43s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Has been skipped Details

This commit is contained in:
Anne de Jong 2023-10-16 13:37:18 +02:00
parent 749d5354c9
commit bf6a18bcf8
1 changed files with 12 additions and 12 deletions

View File

@ -7,7 +7,10 @@ on:
jobs:
Build-Test-Ubuntu:
runs-on: ubuntu-latest
container: ascee/ubuntu_build:latest
container:
image: ascee/ubuntu_build:latest
volumes:
- dist:/dist
steps:
- name: Checkout
uses: actions/checkout@v4
@ -20,25 +23,22 @@ jobs:
python3 -m build
pip install dist/lasp*.whl
pytest
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build_files
path: dist
- 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: Download artifacts
uses: actions/download-artifact@v3
with:
name: build_files
- name: Apparently Golang is required (install manually)
run: apt update && apt install -y golang
@ -46,6 +46,6 @@ jobs:
uses: https://gitea.com/actions/release-action@main
with:
files: |-
dist/**
/dist/**
api_key: '${{secrets.RELEASE_TOKEN}}'