Skip to content

Commit

Permalink
Release OIDC authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Sep 2, 2023
1 parent c787ef7 commit 13cf0c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ on:
jobs:
build-and-publish:
runs-on: ubuntu-20.04
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.11'
- name: Verify versioning
run: |
[ "$(poetry version -s)" == "${GITHUB_REF#refs/tags/v}" ]
Expand All @@ -26,14 +29,11 @@ jobs:
run: poetry run pytest
- name: Build packages
run: poetry build
- name: Configure Poetry
run: |
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }}
poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
- name: Publish to test PyPI
if: ${{ github.event_name == 'push' }}
run: poetry publish -r testpypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish to PyPI
if: ${{ github.event_name == 'release' }}
run: poetry publish
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "pysigma-backend-splunk"
version = "1.0.3"
description = "pySigma Splunk backend"
readme = "README.md"
authors = ["Thomas Patzke <[email protected]>"]
license = "LGPL-2.1-only"
repository = "https://github.com/SigmaHQ/pySigma-backend-splunk"
Expand Down

0 comments on commit 13cf0c4

Please sign in to comment.