-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.28 KB
/
deploy_lw_sila_package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# s. https://github.com/pallets/flask
name: Labware SiLA Python Package Push
on:
push:
# Publish `master` as Docker `latest` image.
branches:
- main
- develop
#- seed
# Publish `v1.2.3` tags as releases.
tags:
- v*
# Run tests for any PRs.
pull_request:
env:
PACKAGE_VERSION: 0.0.4
PACKAGE_NAME: labop_labware_sila-$PACKAGE_VERSION
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- uses: actions/checkout@v3
- name: Build package
run: |
cd SiLA
echo "Building SiLA python package ...."
ls -Al
python -m build
# Generate hashes used for provenance.
- name: generate hash
id: hash
run: |
echo "Generating hash ...."
cd SiLA
ls -Al
echo "dist: "
ls -Al dist
cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
path: ./SiLA/dist
name: ${{ env.PACKAGE_NAME }}