File: release.yaml

package info (click to toggle)
libmodulemd 2.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 5,152 kB
  • sloc: ansic: 37,845; python: 3,236; xml: 1,739; sh: 377; makefile: 42
file content (43 lines) | stat: -rw-r--r-- 1,207 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
name: Release Tasks
on:
  release:
    types: [published]

jobs:
  docs:
    name: Publish Documentation
    runs-on: ubuntu-latest
    continue-on-error: false
    if: github.repository == 'fedora-modularity/libmodulemd'
    steps:
      - name: Checkout code repo
        uses: actions/checkout@v3

      - name: Checkout documentation repo
        uses: actions/checkout@v3
        with:
          repository: fedora-modularity/fedora-modularity.github.io
          ref: main
          path: fedora-modularity.github.io
          token: ${{ secrets.DOC_TOKEN }}

      - name: Get release version
        run: |
          echo "version=$(./get_version.sh)" >> $GITHUB_ENV

      - name: Generate documentation
        run: |
          ./.ci/ci-docs.sh $version

      - name: Commit documentation
        uses: EndBug/add-and-commit@v9
        with:
          new_branch: main
          token: ${{ secrets.DOC_TOKEN }}
          cwd: fedora-modularity.github.io
          author_name: Libmodulemd CI
          author_email: github-actions@github.com
          message: libmodulemd docs for ${{ env.version }}
          add: libmodulemd/${{ env.version }}
          commit: --signoff
          push: true