From bf6a18bcf88cbcfb1df473303241992e80bf2b82 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - ASCEE / Redu-Sone B.V." Date: Mon, 16 Oct 2023 13:37:18 +0200 Subject: [PATCH] Use a volume to share state --- .gitea/workflows/master.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/master.yml b/.gitea/workflows/master.yml index ce3c25f..a4230a3 100644 --- a/.gitea/workflows/master.yml +++ b/.gitea/workflows/master.yml @@ -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}}'