mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-27 00:58:37 +00:00
ci: allow docs to be manually published via workflow_dispatch
This commit is contained in:
parent
6b55eeef98
commit
a048ddd6eb
35
.github/workflows/publish-docs.yml
vendored
Normal file
35
.github/workflows/publish-docs.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Publish Docs
|
||||||
|
on: workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish_docs:
|
||||||
|
name: Publish docs to Netlify
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: merge_crowdin_pr
|
||||||
|
steps:
|
||||||
|
- name: Setup | Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
# Required to include the recently merged Crowdin PR
|
||||||
|
ref: master
|
||||||
|
|
||||||
|
- name: Setup | Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Setup | Install dependencies
|
||||||
|
run: npm install
|
||||||
|
working-directory: docs
|
||||||
|
|
||||||
|
- name: Build | Build docs site
|
||||||
|
run: npm run build
|
||||||
|
working-directory: docs
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
uses: netlify/actions/cli@master
|
||||||
|
with:
|
||||||
|
args: deploy --prod --dir=docs/.vuepress/dist
|
||||||
|
env:
|
||||||
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||||
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
32
.github/workflows/release.yml
vendored
32
.github/workflows/release.yml
vendored
@ -106,7 +106,7 @@ jobs:
|
|||||||
run: cargo install --version 0.3.4 cargo-wix
|
run: cargo install --version 0.3.4 cargo-wix
|
||||||
env:
|
env:
|
||||||
# cargo-wix does not require static crt
|
# cargo-wix does not require static crt
|
||||||
RUSTFLAGS: ''
|
RUSTFLAGS: ""
|
||||||
|
|
||||||
- name: Build | Build
|
- name: Build | Build
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1.0.3
|
||||||
@ -351,33 +351,9 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
publish_docs:
|
publish_docs:
|
||||||
name: Publish docs to Netlify
|
name: Trigger docs deployment
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: merge_crowdin_pr
|
needs: merge_crowdin_pr
|
||||||
steps:
|
steps:
|
||||||
- name: Setup | Checkout
|
- name: Trigger workflow dispatch
|
||||||
uses: actions/checkout@v3
|
run: gh workflow run publish-docs.yml
|
||||||
with:
|
|
||||||
# Required to include the recently merged Crowdin PR
|
|
||||||
ref: master
|
|
||||||
|
|
||||||
- name: Setup | Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
|
|
||||||
- name: Setup | Install dependencies
|
|
||||||
run: npm install
|
|
||||||
working-directory: docs
|
|
||||||
|
|
||||||
- name: Build | Build docs site
|
|
||||||
run: npm run build
|
|
||||||
working-directory: docs
|
|
||||||
|
|
||||||
- name: Publish
|
|
||||||
uses: netlify/actions/cli@master
|
|
||||||
with:
|
|
||||||
args: deploy --prod --dir=docs/.vuepress/dist
|
|
||||||
env:
|
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user