-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.31 KB
/
build.yaml
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
name: build
on:
push:
# branches:
# - main
# - release-sentry-jsonish/**
# - release-sentry-jsonnet/**
jobs:
dist:
name: Create wheel and source distribution
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: "build sentry_jsonnet"
working-directory: ./sentry_jsonnet
run: |
pip install wheel
pip install build
python -m build --wheel
- name: "build sentry_jsonish"
working-directory: ./sentry_jsonish
run: |
pip install wheel
pip install build
python -m build --wheel
- uses: actions/upload-artifact@v4
with:
name: artifact-jsonnet
path: sentry_jsonnet/dist/*
- uses: actions/upload-artifact@v4
with:
name: artifact-jsonish
path: sentry_jsonish/dist/*
merge:
name: Create Release Artifact
runs-on: ubuntu-latest
needs: [dist]
steps:
- uses: actions/upload-artifact/merge@v4
with:
# Craft expects release assets from github to be a single artifact named after the sha.
name: ${{ github.sha }}
pattern: artifact-*
delete-merged: true