mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
Added new GitHub Action to release the docs as a package
This commit is contained in:
35
.github/workflows/docs-release.yml
vendored
Normal file
35
.github/workflows/docs-release.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Package and Release CrewAI Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
create-docs-package:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Create Docs Tarball
|
||||
run: tar -czvf docs.tar.gz docs/
|
||||
|
||||
- name: Generate Release Notes
|
||||
run: |
|
||||
echo "This release contains the latest documentation package for the CrewAI Docs." > release_notes.md
|
||||
echo "" >> release_notes.md
|
||||
echo "Last updated: $(date +'%Y-%m-%d %H:%M:%S %Z')" >> release_notes.md
|
||||
echo "" >> release_notes.md
|
||||
echo "Commit: ${{ github.sha }}" >> release_notes.md
|
||||
|
||||
- name: Update Latest Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release delete latest --yes || true
|
||||
gh release create latest docs.tar.gz \
|
||||
--title "Latest Documentation Package" \
|
||||
--notes-file release_notes.md \
|
||||
--latest
|
||||
Reference in New Issue
Block a user