Publish Docsets #107
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Docsets | |
| on: | |
| schedule: | |
| - cron: "0 0 */2 * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| jobs: | |
| publish-docsets: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Install tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y sqlite3 libxml2-utils tar | |
| npm install -g badge-maker | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.4" | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Build Release assets | |
| id: build | |
| run: | | |
| ./build-release.sh | |
| { | |
| echo "assets<<EOF" | |
| cat release/assets.txt | |
| echo "EOF" | |
| } >> $GITHUB_OUTPUT | |
| - name: Publish docsets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: 'docsets' | |
| name: 'PHP Manual Dash Docsets' | |
| body_path: release/body.md | |
| files: ${{ steps.build.outputs.assets }} | |
| preserve_order: true | |
| make_latest: true | |
| - name: Upload site artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: site | |
| path: _site |