File: release.yaml

package info (click to toggle)
python-syrupy 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,460 kB
  • sloc: python: 6,156; makefile: 3
file content (50 lines) | stat: -rw-r--r-- 1,244 bytes parent folder | download
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
name: Release

on:
  workflow_dispatch:
    inputs:
      dry-run:
        required: false
        type: boolean
        default: false
        description: "Whether to run the release in dry-run mode"

env:
  VENV: .venv

jobs:
  release:
    name: Release
    permissions:
      contents: write
      pull-requests: write
    runs-on: ubuntu-latest
    environment: release
    steps:
      - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
        with:
          fetch-depth: 0
          persist-credentials: false

      - name: Setup Environment
        uses: ./.github/actions/setup-env

      - name: Install project dependencies
        run: . script/bootstrap

      - name: Release
        uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
        with:
          branches: |
            [
              'main'
            ]
          dry_run: ${{ inputs.dry-run }}
          extra_plugins: |
            @semantic-release/changelog
            @semantic-release/exec
            @semantic-release/git
        env:
          TWINE_USERNAME: __token__
          TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISH_TOKEN }}
          GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_PAT }}