aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/postrelease.yml
blob: 9d59a9a5a8c7bc739b159f71f8d1615036b4bb04 (plain)
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
name: Postrelease
on:
  release:
    types: [released]

jobs:
  postrelease:
    if: ${{ github.repository == 'lite-xl/lite-xl' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'rc') }}
    runs-on: windows-latest
    steps:
      - name: Update winget-pkgs repository
        env: { GH_TOKEN: "${{ secrets.WINGET_TOKEN }}" }
        run: gh repo sync lite-xl/winget-pkgs

      - name: Release to winget
        uses: vedantmgoyal9/winget-releaser@main
        with:
          identifier: LiteXLTeam.LiteXL
          installers-regex: '^lite-xl-v[0-9\.]+-x86_64-windows-setup\.exe$'
          fork-user: 'lite-xl'
          token: ${{ secrets.WINGET_TOKEN }}

      - name: Update documentation link
        env: { GH_TOKEN: "${{ secrets.DOCS_TOKEN }}" }
        run: gh -R lite-xl/docs workflow run deploy.yml