临时静态网站托管工具
pip install smokeshow
smokeshow generate-key
export SMOKESHOW_AUTH_KEY='QYd85mFqMJsdfdfsssssspg'
smokeshow upload path/to/upload
完了之后生成一个链接: https://smokeshow.helpmanual.io/6a3u450w6i5r0h1n053t/
临时网站可以保存一年,生成authkey即可,无需账户,勿滥用。比较牛的地方是请求转发,虽然是子目录中部署,但是却和根目录一样效果。
配置GitHub action使用:
- run: smokeshow upload html
env:
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 90
SMOKESHOW_GITHUB_CONTEXT: coverage
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}