-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 938 Bytes
/
release.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
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
environment: release
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: build
shell: bash
run: |
python -m pip install --upgrade build
python -m pip install -r requirements-dev.txt
python -m build
- name: make schema
shell: bash
run: |
python -m level4.model schema -o schema.json
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Release GitHub
uses: softprops/action-gh-release@v1
with:
files: |
dist/*
schema.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}