77 lines
2.0 KiB
YAML
77 lines
2.0 KiB
YAML
name: Run Release Please
|
|
|
|
on:
|
|
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.RELEASE_PLEASE_ACTION_TOKEN}}
|
|
default-branch: main
|
|
signoff: "OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>"
|
|
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: Create and activate Virtualenv
|
|
# run: |
|
|
# [ ! -d ".venv" ] && python -m venv .venv
|
|
# . .venv/bin/activate
|
|
|
|
# - name: Install dependencies
|
|
# run: pip install -r requirements.txt
|
|
|
|
# - name: Install pypa/build
|
|
# run: >-
|
|
# python -m
|
|
# pip install
|
|
# build
|
|
# --user
|
|
|
|
# - name: Build a binary wheel and a source tarball
|
|
# run: >-
|
|
# python -m
|
|
# build
|
|
# --sdist
|
|
# --wheel
|
|
# --outdir dist/
|
|
# .
|
|
|
|
# - name: Publish a Python distribution to PyPI
|
|
# uses: pypa/gh-action-pypi-publish@release/v1
|