File: documentation.yaml

package info (click to toggle)
php-phpdocumentor-type-resolver 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,432 kB
  • sloc: php: 26,448; xml: 102; makefile: 50
file content (61 lines) | stat: -rw-r--r-- 1,605 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
51
52
53
54
55
56
57
58
59
60
61
name: "Documentation"

on: # yamllint disable-line rule:truthy
  push:
    branches:
      - "1.x"
  pull_request: null

jobs:
  documentation:
    name: "Documentation"
    runs-on: "ubuntu-latest"
    steps:
      - name: "Checkout"
        uses: "actions/checkout@v5"

      - name: "Build"
        uses: "phpDocumentor/phpDocumentor@master"

      - name: "Deploy"
        if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/1.x' }}"
        uses: "actions/upload-artifact@v5"
        with:
          name: "documentation"
          path: "build/docs"
          retention-days: 1

  deploy:
    name: "Deploy"
    if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/1.x' }}"
    runs-on: "ubuntu-latest"
    needs: "documentation"
    steps:
      - name: "Checkout"
        uses: "actions/checkout@v5"
        with:
          repository: "phpDocumentor/docs"
          token: "${{ secrets.BOT_TOKEN }}"
          path: "docs"

      - name: "Download"
        uses: "actions/download-artifact@v6"
        with:
          name: "documentation"
          path: "build/docs"

      - name: "Copy files"
        run: "rsync -r --delete build/docs/* docs/docs/components/type-resolver"

      - name: "Commit"
        uses: "stefanzweifel/git-auto-commit-action@v7"
        with:
          repository: "docs"
          commit_message: "Update type-resolver documentation"

      - name: "Push"
        uses: "ad-m/github-push-action@master"
        with:
          directory: "docs"
          github_token: "${{ secrets.BOT_TOKEN }}"
          repository: "phpDocumentor/docs"