mirror of
https://github.com/tauri-apps/typedocusaurus.git
synced 2026-02-04 02:31:22 +01:00
feat: Added covector
This commit is contained in:
16
.github/workflows/covector-status.yml
vendored
Normal file
16
.github/workflows/covector-status.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: covector status
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
covector:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: covector status
|
||||
uses: jbolda/covector/packages/action@covector-v0
|
||||
id: covector
|
||||
with:
|
||||
command: 'status'
|
||||
40
.github/workflows/covector-version-or-publish.yml
vendored
Normal file
40
.github/workflows/covector-version-or-publish.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: covector version or publish
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
covector:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: git config
|
||||
run: |
|
||||
git config --global user.name "${{ github.event.pusher.name }}"
|
||||
git config --global user.email "${{ github.event.pusher.email }}"
|
||||
- name: covector version-or-publish
|
||||
uses: jbolda/covector/packages/action@covector-v0
|
||||
id: covector
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
command: 'version-or-publish'
|
||||
createRelease: true
|
||||
- name: create pull request
|
||||
id: cpr
|
||||
uses: tauri-apps/create-pull-request@v2.8.0
|
||||
if: steps.covector.outputs.commandRan == 'version'
|
||||
with:
|
||||
title: "Publish New Versions"
|
||||
commit-message: "publish new versions"
|
||||
labels: "version updates"
|
||||
branch: "release"
|
||||
body: ${{ steps.covector.outputs.change }}
|
||||
27
.github/workflows/test-action.yml
vendored
Normal file
27
.github/workflows/test-action.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: test action
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
update-docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: checkout tauri-docs
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: tauri-apps/tauri-docs
|
||||
path: tauri-docs
|
||||
- name: checkout tauri
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: tauri-apps/tauri
|
||||
path: tauri
|
||||
- name: run typedocusaurus
|
||||
uses: ./
|
||||
with:
|
||||
originPath: ./tauri/tooling/api/
|
||||
sidebarFile: ./tauri-docs/sidebars/typedoc.json
|
||||
targetPath: ./tauri-docs/docs/en/api/js/
|
||||
docusaurusPath: ./tauri-docs/
|
||||
Reference in New Issue
Block a user