Merge pull request #754 from openglobus/detached

pipeline changes
This commit is contained in:
Michael Gevlich 2023-08-01 15:56:14 +04:00 committed by GitHub
commit d7410f6416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 35 deletions

View File

@ -1,8 +1,8 @@
name: CI
name: Build
on:
push:
branches: [ master, ci ]
branches: [ master ]
pull_request:
branches: [ master ]
@ -31,33 +31,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/main
- run: npm test
docs:
name: Generate documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/main
- run: npm run docs
# Temprorary deploy to check work
- name: Deploy to openglobus.github.io
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: docs
destination-github-username: openglobus
destination-repository-name: openglobus.github.io
user-name: Github Bot
user-email: github-actions[bot]@users.noreply.github.com
target-branch: master
target-directory: docs
generate_types:
name: Generate types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/main
- run: npm run generate_types
- run: npm test

41
.github/workflows/tag.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: Tag CI
on:
create:
tags:
- '*'
push:
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
docs:
name: Generate documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/main
- run: npm run docs
- name: Deploy to openglobus.github.io
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: docs
destination-github-username: openglobus
destination-repository-name: openglobus.github.io
user-name: Github Bot
user-email: github-actions[bot]@users.noreply.github.com
target-branch: master
target-directory: docs
generate_types:
name: Generate types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/main
- run: npm run generate_types

View File

@ -1,5 +1,5 @@
[![NPM PACKAGE](https://img.shields.io/npm/v/@openglobus/og.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen)](https://www.npmjs.com/@openglobus/og)
![BUILD](https://github.com/openglobus/openglobus/actions/workflows/push.yml/badge.svg)
# Openglobus
English | [简体中文](README_CN.md) | [Portuguese-BR](README_pt-BR.md)

View File

@ -1,5 +1,5 @@
[![NPM PACKAGE](https://img.shields.io/npm/v/@openglobus/og.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen)](https://www.npmjs.com/@openglobus/og)
![BUILD](https://github.com/openglobus/openglobus/actions/workflows/push.yml/badge.svg)
# Openglobus
[English](README.md) | 简体中文 | [Portuguese-BR](README_pt-BR.md)

View File

@ -1,5 +1,5 @@
[![NPM PACKAGE](https://img.shields.io/npm/v/@openglobus/og.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen)](https://www.npmjs.com/@openglobus/og)
![BUILD](https://github.com/openglobus/openglobus/actions/workflows/push.yml/badge.svg)
# Openglobus
[English](README.md) | [简体中文](README_CN.md) | Portuguese-BR