-
Notifications
You must be signed in to change notification settings - Fork 164
53 lines (47 loc) · 1.78 KB
/
development-release.yml
File metadata and controls
53 lines (47 loc) · 1.78 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Publish Development Package
on:
pull_request:
types:
- closed
branches:
- main
permissions:
contents: read
jobs:
deploy-package:
if: >
${{ github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'bleeding-edge') }}
timeout-minutes: 45
environment: release
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0
with:
fetch-depth: 0
ref: dev
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
- name: Install dependencies
run: |
pipx install hatch==1.16.5
- name: Development package updates
run: |
sed -i 's/src\/falconpy/src\/falconpydev/g' pyproject.toml
sed -i 's/name = "crowdstrike-falconpy"/name = "crowdstrike-falconpy-dev"/g' pyproject.toml
sed -i 's/from falconpy import/from falconpydev import/g' README.md
sed -i 's/install crowdstrike-falconpy/install crowdstrike-falconpy-dev/g' README.md
sed -i "5,/FalconPy - The CrowdStrike Falcon SDK for Python/s/FalconPy - The CrowdStrike Falcon SDK for Python/$header/" README.md
sed -i 's/badgeFalconPy - The CrowdStrike Falcon SDK for Pythonlogo/badge&logo/g' README.md
sed -i 's/!\[CrowdStrike FalconPy\](https:\/\/raw.githubusercontent.com\/CrowdStrike\/falconpy\/main\/docs\/asset\/cs-logo-red.png#gh-dark-mode-only)//g' README.md
mv src/falconpy src/falconpydev
- name: Build
run: |
hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0