Feat(Fortune): Preview result url (#62)
* Feat(Fortune): Support preview result depends on url params * Feat(Fortune): Specify commit hash in preview result to ensure event consistency * Feat(Fortune): Add copy preview url button * Feat(Fortune): Support theme color for copy preview button * Impr(Fortune): Make UI looks better * Docs(CONTRIBUTING): Add missing theme field
This commit was merged in pull request #62.
This commit is contained in:
22
.github/workflows/static.yml
vendored
22
.github/workflows/static.yml
vendored
@@ -31,13 +31,17 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
|
||||
- name: Write Commit Hash
|
||||
run: |
|
||||
cat << EOF | tee fortune_generator/json/commit_hash.json > /dev/null
|
||||
{"commit_hash": "$(git rev-parse HEAD)"}
|
||||
EOF
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
if: github.ref == 'refs/heads/main'
|
||||
with:
|
||||
# Upload entire repository
|
||||
path: '.'
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./
|
||||
publish_branch: gh-pages
|
||||
|
||||
Reference in New Issue
Block a user