summaryrefslogtreecommitdiff
path: root/.github/workflows/create-release.yml
blob: 12ac825fb71fe77e4a081dea9a1a4ca20d6076ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Create release

on:
  push:
    tags:
    - "v*.*.*"

permissions:
  contents: read

jobs:
  create-release:
    permissions:
      contents: write  # for softprops/action-gh-release to create GitHub release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          body: "Changelog: https://www.sphinx-doc.org/en/master/changes.html"