Use a volume to share state
This commit is contained in:
parent
749d5354c9
commit
bf6a18bcf8
@ -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}}'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user