Skip to content

Instantly share code, notes, and snippets.

@longshilin
Last active November 9, 2020 04:33
Show Gist options
  • Save longshilin/0037f2f43366e402fec4bcdc8d1bf6fc to your computer and use it in GitHub Desktop.
Save longshilin/0037f2f43366e402fec4bcdc8d1bf6fc to your computer and use it in GitHub Desktop.
Github Workflow For Docsify Pages Depoly
name: Page Deploy
on:
push:
branches:
- master
jobs:
Replace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@master
with:
find: <!--[\s\S]*?-->
replace: ""
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the stack
run: docker-compose up -d
# - name: Test
# run: docker run --network container:webapp-frontend appropriate/curl -s --retry 10 --retry-connrefused http://localhost:8020/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment