Skip to content

site

site #53

Workflow file for this run

name: site
on:
push:
branches:
- test
workflow_run:
workflows: ["build-deploy"]
types:
- completed
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["14"]
name: gh-pages-publish
steps:
- uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: build
env:
BASE_URL: "https://${{env.CI_REPOSITORY_OWNER}}.github.io/${{env.CI_REPOSITORY_NAME}}/"
run: |
npm install
sed -i "s#history#hash#g" .env.production
npm run build
- uses: peaceiris/actions-gh-pages@v3
name: GitHub Pages Deploy
with:
publish_dir: "dist/"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: feishu-bot-message
if: always()
uses: foxundermoon/feishu-action@v2
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
msg_type: text
content: |
text: |
⭕️ 部署状态 - From Github Action
repository: https://github.com/${{ github.repository }}
committer: https://github.com/${{ github.actor }}
compare: ${{ github.event.compare }}
job status: ${{ job.status }}
online: https://${{env.CI_REPOSITORY_OWNER}}.github.io/${{env.CI_REPOSITORY_NAME}}/