Skip to content

Merge pull request #2 from thisthat/test1 #2

Merge pull request #2 from thisthat/test1

Merge pull request #2 from thisthat/test1 #2

Workflow file for this run

name: Run Release Please
on:
workflow_dispatch:
inputs:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
# Release-please creates a PR that tracks all changes
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
signoff: "OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>"
- name: Dump Release Please Output
env:
RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }}
run: |
echo "$RELEASE_PLEASE_OUTPUT"
outputs:
release_created: ${{ steps.release.outputs.releases_created }}
all: ${{ toJSON(steps.release.outputs) }}
paths_released: ${{ steps.release.outputs.paths_released }}
pypi-release:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing to pypi
id-token: write
container:
image: "python:3.12"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache virtualenvironment
uses: actions/cache@v4
with:
path: ~/.venv
key: ${{ hashFiles('requirements.txt', 'requirements-dev.txt') }}
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install hatch
run: pip install hatch
- name: Build a binary wheel and a source tarball
run: hatch build
- name: Debug
run: ls -alR ./dist
# - name: Publish a Python distribution to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1