-
Notifications
You must be signed in to change notification settings - Fork 97
38 lines (36 loc) · 1.1 KB
/
release.yml
File metadata and controls
38 lines (36 loc) · 1.1 KB
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
name: Release
on:
release:
types: [ created ]
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/rocketchat-API
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build
run: |
python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Announce release
uses: jadolg/rocketchat-notification-action@v3.0.0
with:
server: https://open.rocket.chat
message: A new version (${{ github.event.release.tag_name }}) has been released! ${{ github.event.release.html_url }}
user-id: ${{ secrets.ROCKETCHAT_USER_ID }}
auth-token: ${{ secrets.ROCKETCHAT_AUTH_TOKEN }}
channel: "#python_rocketchat_api"