diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..fc9f855 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of your workflow files + schedule: + interval: "weekly" # Options: daily, weekly, monthly diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index df2a5af..3eeed32 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,5 +1,7 @@ --- name: Docs +permissions: + contents: write on: [push, pull_request] @@ -15,6 +17,8 @@ jobs: }}" >> $GITHUB_OUTPUT - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Upgrade jinja run: pip install -U jinja2 @@ -24,14 +28,16 @@ jobs: - name: Build run: | - if [ "${{ steps.setup.outputs.IS_RELEASE }}" == "true" ]; then + if [ "${STEPS_SETUP_OUTPUTS_IS_RELEASE}" == "true" ]; then O="-t release" fi make html O="$O" + env: + STEPS_SETUP_OUTPUTS_IS_RELEASE: ${{ steps.setup.outputs.IS_RELEASE }} - name: Publish if: ${{ steps.setup.outputs.IS_RELEASE == 'true' }} - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_build/html