/
niceSOFT
/
python3-build
Обзор
Документация
Войти
/
niceSOFT
/
python3-build
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/pre-release.yml
61 строка
2 KB
dependabot[bot]
build(deps): bump the github-actions group with 5 updates (#1141)
01 авг 2026, 16:39
Не верифицирован
01 авг 2026, 16:39
e39c8e4
Код
Авторство
О чём код?
name: Pre-release on: workflow_dispatch: inputs: bump: description: "Version bump type" required: true type: choice options: - auto - major - minor - patch default: auto concurrency: group: pre-release-${{ github.ref }} cancel-in-progress: true permissions: {} jobs: pre-release: name: Pre-release runs-on: ubuntu-latest environment: release permissions: contents: write # to push release commit and tag steps: - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false token: ${{ secrets.GH_RELEASE_TOKEN }} - name: Install the latest version of uv uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: enable-cache: true cache-dependency-glob: "pyproject.toml" github-token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python run: uv python install 3.14 - name: Configure git identity from token owner env: GH_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} run: | user_info=$(gh api /user) git config user.name "$(echo "$user_info" | jq -r '.name // .login')" git config user.email "$(echo "$user_info" | jq -r '.id')+$(echo "$user_info" | jq -r '.login')@users.noreply.github.com" - name: Generate release commit and tag run: uv tool run --with tox-uv tox r -e release -- --version "$BUMP" --no-push env: BUMP: ${{ inputs.bump }} - name: Verify docs build against the release commit run: uv tool run --with tox-uv tox r -e docs - name: Push release commit and tag run: | git remote set-url origin "https://x-access-token:${GH_RELEASE_TOKEN}@github.com/$GITHUB_REPOSITORY.git" git push origin HEAD:main git push origin "$(git describe --tags --abbrev=0)" env: GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} GITHUB_REPOSITORY: ${{ github.repository }}