Closed AnthonyByansi closed 3 months ago
Hi @AnthonyByansi 👋 Thanks for the PR! Adding @sarah-yo for review.
Hi @AnthonyByansi, what is the goal of this PR?
Hi @sarah-yo Well, as you might have noticed, the repo site is not updated automatically, it only reflects changes for the initial deployment.
As spotted by #22 reolves #22
@AnthonyByansi understand. However, this can be done using a first party Github action now rather than a third party one (like this example here: https://github.com/tonybaloney/vscode-pets/blob/main/.github/workflows/docs.yml , please can you update this to use native GH actions?
Hi @sarah-yo I've made modifications to the workflow through: https://github.com/microsoft/Security-101/pull/33/commits/03819b09d682637e8b3b14b5e375309e5a99876c
@AnthonyByansi can you please make sure the job had appripriate permissions, I think you need a statement along the lines of this:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
@sarah-yo Thanks for your constructive feedback. I've added the necessary sections through https://github.com/microsoft/Security-101/pull/33/commits/14109baada1f6d3edf8d169295420157db7c865e and https://github.com/microsoft/Security-101/pull/33/commits/8e73a8b39b2e5fdf772429743223531e80d3e0ae
Hi @fhinkel
This pull request adds a GitHub Actions workflow to automatically publish changes from the
README.md
to GitHub Pages. The workflow is triggered on pushes to themain
branch that include changes to theREADME.md
. It converts theREADME.md
into anindex.html
and deploys it.Changes:
.github/workflows/deploy.yml
to define the GitHub Actions workflow.README.md
toindex.html
, and deploys it usingpeaceiris/actions-gh-pages
.Resolves #22