Skip to content

Commit 283a7f5

Browse files
committed
update workflows
1 parent 0d4c66a commit 283a7f5

File tree

2 files changed

+23
-33
lines changed

2 files changed

+23
-33
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,17 @@ on:
99
- main
1010

1111
jobs:
12-
build-package:
12+
build:
1313
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
18-
python-version: [3.6, 3.7, 3.8, 3.9]
18+
python: ["3.10", "3.11", "3.12"]
1919

2020
steps:
21-
- uses: actions/checkout@v2
22-
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
28-
- uses: compas-dev/[email protected]
21+
- uses: compas-dev/compas-actions.build@v4
2922
with:
30-
test_lint: true
23+
python: ${{ matrix.python }}
24+
invoke_lint: true
25+
invoke_test: true

.github/workflows/release.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
1-
name: Release
1+
name: release
22

33
on:
44
push:
55
tags:
66
- 'v*'
77

88
jobs:
9-
Release:
10-
runs-on: ubuntu-latest
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
python: ['3.9', '3.10', '3.11']
15+
1116
steps:
12-
- uses: actions/checkout@v2
13-
- name: Create Release
14-
id: create_release
15-
uses: actions/create-release@v1
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
- uses: compas-dev/compas-actions.build@v4
1818
with:
19-
tag_name: ${{ github.ref }}
20-
release_name: Release ${{ github.ref }}
21-
draft: false
22-
prerelease: false
23-
19+
python: ${{ matrix.python }}
20+
invoke_lint: true
21+
invoke_test: true
2422

2523
Publish:
26-
needs: Release
24+
needs: build
2725
runs-on: ubuntu-latest
2826
steps:
29-
- uses: actions/checkout@v2
30-
- uses: actions/setup-python@v2
31-
with:
32-
python-version: '3.x'
33-
- uses: compas-dev/[email protected]
34-
with:
35-
token: ${{ secrets.PYPI }}
27+
- uses: compas-dev/compas-actions.publish@v3
28+
with:
29+
pypi_token: ${{ secrets.PYPI }}
30+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)