Last active
November 9, 2020 04:33
-
-
Save longshilin/0037f2f43366e402fec4bcdc8d1bf6fc to your computer and use it in GitHub Desktop.
Github Workflow For Docsify Pages Depoly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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