Skip to content

Commit

Permalink
permissions added to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Dec 13, 2024
1 parent ed97b88 commit 26859b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ on:
jobs:
create_release:
if: startsWith(github.event.head_commit.message, 'new version')

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -40,7 +45,7 @@ jobs:
- name: Create GitHub release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.YASMIN_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "${{ env.version }}"
release_name: "${{ env.version }}"
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/doxygen-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ on:
jobs:
doxygen_generation:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Generate Doxygen for C++
uses: mattnotmitt/doxygen-action@edge
with:
doxyfile-path: ".github/Doxyfile-cpp"

- name: Generate Doxygen for Python
- name: Generate Doxygen
uses: mattnotmitt/doxygen-action@edge
with:
doxyfile-path: ".github/Doxyfile-python"
doxyfile-path: ".github/Doxyfile"

- name: Deploy Doxygen page
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.YASMIN_GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs
publish_dir: docs/html

0 comments on commit 26859b3

Please sign in to comment.