feat: Added covector

This commit is contained in:
Laegel
2021-05-24 09:54:08 +02:00
parent 50e762feba
commit 956483944f
3 changed files with 83 additions and 0 deletions

16
.github/workflows/covector-status.yml vendored Normal file
View 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'

View 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
View 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/