Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 4 additions & 26 deletions .github/workflows/publish-doc-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,7 @@ on:

jobs:
publish-doc-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate and prepare documentation
uses: eclipse-keypop/keypop-actions/doxygen@v2
with:
repo-name: ${{ github.event.repository.name }}
version: ${{ github.event.inputs.version || github.ref_name }}

- name: Deploy to doc branch
run: |
git config --global user.name "Eclipse Keypop Bot"
git config --global user.email "${{ github.repository }}-bot@eclipse.org"
cd ${{ github.event.repository.name }}
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git add .
git commit -m "docs: update ${{ github.event.inputs.version || github.ref_name }} documentation"
git push origin doc --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: eclipse-keypop/keypop-actions/.github/workflows/reusable-publish-doxygen.yml@main
with:
version: ${{ github.event.inputs.version || github.ref_name }}
secrets: inherit
27 changes: 2 additions & 25 deletions .github/workflows/publish-doc-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,5 @@ on:

jobs:
publish-doc-snapshot:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate and prepare documentation
uses: eclipse-keypop/keypop-actions/doxygen@v2
with:
repo-name: ${{ github.event.repository.name }}

- name: Deploy to doc branch
run: |
git config --global user.name "Eclipse Keypop Bot"
git config --global user.email "${{ github.repository }}-bot@eclipse.org"
cd ${{ github.event.repository.name }}
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "docs: update snapshot documentation"
git push origin doc --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: eclipse-keypop/keypop-actions/.github/workflows/reusable-publish-doxygen.yml@main
secrets: inherit
38 changes: 0 additions & 38 deletions .github/workflows/publish-to-keypop-doc.yml

This file was deleted.

Loading