Skip to content

Commit 6c59cff

Browse files
committed
update workflows
1 parent dee4971 commit 6c59cff

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
Build:
12+
build:
1313
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
1414
runs-on: ${{ matrix.os }}
1515
strategy:
@@ -20,6 +20,6 @@ jobs:
2020
steps:
2121
- uses: compas-dev/compas-actions.build@v4
2222
with:
23+
python: ${{ matrix.python }}
2324
invoke_lint: true
2425
invoke_test: true
25-
python: ${{ matrix.python }}

.github/workflows/pr-checks.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: verify-pr-checklist
2+
3+
on:
4+
pull_request:
5+
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
6+
branches:
7+
- main
8+
- master
9+
10+
jobs:
11+
build:
12+
name: Check Actions
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Changelog check
17+
uses: Zomzog/changelog-checker@v1.2.0
18+
with:
19+
fileName: CHANGELOG.md
20+
checkNotification: Simple
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [macos-latest, windows-latest]
14+
python: ["3.9"]
15+
16+
steps:
17+
- uses: compas-dev/compas-actions.build@v4
18+
with:
19+
python: ${{ matrix.python }}
20+
invoke_lint: true
21+
invoke_test: true
22+
23+
Publish:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
steps:
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)