![]() The scripts and documentation in this project are released under the MIT License. ☑️Īfter publishing the release, the release workflow will automatically run to create/update the corresponding the major version tag such as v1. Publish the draft release from the main branch with semantic version as the tag name, with the checkbox to publish to the GitHub Marketplace checked. Locate the semantic version of the upcoming release (a draft is maintained by the draft-release workflow). In order to release a new version of this Action: If your Pages site is using GitHub Actions as the source, while not required we highly recommend you also protect your environment (we do it by default for you) ![]() ![]() If your Pages site is using a source branch, the deployment must originate from this source branch unless your environment is protected in which case the environment protection rules take precedence over the source branch rule The deployment should target the github-pages environment (you may use a different environment name if needed, but this is not recommended.) The job that executes the deployment must at minimum have the following permissions: The artifact being deployed must have been uploaded in a previous step, either in the same job or a separate job that doesn't execute until the upload is complete. There are a few important considerations to be aware of: name: Deploy to GitHub Pages id: deployment uses: Security considerations Name: github-pages url: $ # Specify runner + deployment step runs-on: ubuntu-latest steps: ![]() Your GitHub repository can easily become its own website. With GitHub Pages, you can host project blogs, documentation, resumes, portfolios, or any other static content you'd like. Pages: write # to deploy to Pages id-token: write # to verify the deployment originates from an appropriate source # Deploy to the github-pages environment environment: GitHub Pages Create a site or blog from your GitHub repositories with GitHub Pages. # Add a dependency to the build job needs: build # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: # At a minimum this job should upload artifacts using actions/upload-pages-artifact # Deploy job deploy: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |