ansible-collections / community.windows

Windows community collection for Ansible
https://galaxy.ansible.com/community/windows
GNU General Public License v3.0
199 stars 152 forks source link

add automated docs building and publishing #391

Closed briantist closed 2 years ago

briantist commented 2 years ago
SUMMARY

As discussed: https://github.com/ansible/community/issues/644#issuecomment-1116309488

~I will wait until we're sure it's working before adding a new PR deleting the RST files in docs/ and the related workflow.~ Follow-up PR is up: https://github.com/ansible-collections/community.windows/pull/392

ISSUE TYPE
briantist commented 2 years ago

Following discussion in WWG, I've modified the PR workflow to remove the publishing step, which is the step that runs with contents: write permission.

What's left is the build job (read-only, only part that touches PR code), and the separate job for posting a comment on the PR, and doesn't have contents access at all.

This will let us still:


The push/schedule workflow remains the same, with build + publish