-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (47 loc) · 1.23 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: release
on:
release:
types: [created]
permissions:
contents: write
jobs:
build:
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.12']
python-arch: [x64]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}-${{ matrix.python-arch }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.python-arch }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Initialize Submodules
run: |
git submodule update --init --recursive
- name: Build
run: |
poetry build
env:
EMATH_GENERATE_MATH_FILES: 0
- name: Upload Github Release Artifact
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./dist/*.whl
file_glob: true
tag: ${{ github.ref }}
- name: Upload to PyPi
run: |
poetry publish --skip-existing
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}