-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (55 loc) · 1.62 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
name: Release
on:
push:
branches:
- master
jobs:
tests:
name: Tests
uses: ./.github/workflows/test.yml
permissions:
contents: read
release:
name: Release @ ${{ vars.RTLDEV_MW_CI_OS }}
runs-on: ${{ vars.RTLDEV_MW_CI_OS }}
needs: tests
permissions:
contents: write
deployments: write
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Install Python ${{ vars.RTLDEV_MW_CI_PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
check-latest: true
python-version: '${{ vars.RTLDEV_MW_CI_PYTHON_VERSION }}'
- name: Install dependencies
run: |
pip install --upgrade pip build
pip -V
pip install --upgrade -e .
- name: Setup NodeJS ${{ vars.RTLDEV_MW_CI_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ vars.RTLDEV_MW_CI_NODE_VERSION }}
check-latest: true
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Download htmlcov folder from previous job
uses: actions/download-artifact@v3
with:
name: coverage-folder
path: htmlcov
- name: Release
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
RTLDEV_MW_NOTIFICATION_URI: ${{ secrets.RTLDEV_MW_NOTIFICATION_URI }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release