DocC Github Pages Deploy: Deploy Generated DocC Static Site To Github-Pages.
Platform | Status |
---|---|
ubuntu-latest | Tested |
See action.yml.
Make sure to set the version to latest tag.
As An Example:
name: worksapce
on:
push:
branches:
- '**'
jobs:
build_deploy_site:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
contents: read
id-token: write
steps:
- name: deploy static site
uses: kiarashvosough1999/docC-github-pages-deploy@v1.0.0
Make Sure give access to
pages
,contents
andid-token
, or the action will fail to push the site into Github-Pages.
Make sure to specify the
name
andurl
on the environment like the example, or the job will fail.
You can use build-docC-static-site to generate static site from DocC Archive.
The default
docC-generated-static-site-uploaded-name
associated with build-docC-static-site anddocC-generated-static-site-zipped-upload-name
associated with this action, input must be the same.
This action will unzip the input static site with
gtar
andtar
extension. So do not specify the zip extension on eitherdocC-generated-static-site-uploaded-name
ordocC-generated-static-site-zipped-upload-name
.
Feel free to share your ideas or any other problems. Pull requests are welcomed.
docC-github-pages-deploy is released under an MIT license. See LICENSE for more information.