ci: fix docs and create release branches #6
@ -159,6 +159,28 @@ local PipelineBuild = {
|
||||
'prettier -w CHANGELOG.md',
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'publish-branch',
|
||||
image: 'thegeeklab/drone-git-action',
|
||||
settings: {
|
||||
action: [
|
||||
'pages',
|
||||
],
|
||||
author_email: 'shipper@rknet.org',
|
||||
author_name: 'shipper',
|
||||
branch: '${DRONE_TAG##v}',
|
||||
message: 'push to release branch',
|
||||
netrc_machine: 'gitea.rknet.org',
|
||||
netrc_password: {
|
||||
from_secret: 'gitea_token',
|
||||
},
|
||||
pages_directory: 'dist/',
|
||||
remote_url: 'https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}',
|
||||
},
|
||||
when: {
|
||||
ref: ['refs/tags/**'],
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'publish-gitea',
|
||||
image: 'plugins/gitea-release',
|
||||
@ -193,18 +215,21 @@ local PipelineDocumentation = {
|
||||
steps: [
|
||||
{
|
||||
name: 'publish',
|
||||
image: 'plugins/gh-pages',
|
||||
image: 'thegeeklab/drone-git-action',
|
||||
settings: {
|
||||
action: [
|
||||
'pages',
|
||||
],
|
||||
author_email: 'shipper@rknet.org',
|
||||
author_name: 'shipper',
|
||||
branch: 'docs',
|
||||
message: 'auto-update documentation',
|
||||
netrc_machine: 'gitea.rknet.org',
|
||||
pages_directory: 'docs/',
|
||||
password: {
|
||||
netrc_password: {
|
||||
from_secret: 'gitea_token',
|
||||
},
|
||||
pages_directory: 'docs/',
|
||||
remote_url: 'https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}',
|
||||
target_branch: 'docs',
|
||||
username: {
|
||||
from_secret: 'gitea_username',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
35
.drone.yml
35
.drone.yml
@ -190,6 +190,24 @@ steps:
|
||||
- prettier CHANGELOG.md
|
||||
- prettier -w CHANGELOG.md
|
||||
|
||||
- name: publish-branch
|
||||
image: thegeeklab/drone-git-action
|
||||
settings:
|
||||
action:
|
||||
- pages
|
||||
author_email: shipper@rknet.org
|
||||
author_name: shipper
|
||||
branch: ${DRONE_TAG##v}
|
||||
message: push to release branch
|
||||
netrc_machine: gitea.rknet.org
|
||||
netrc_password:
|
||||
from_secret: gitea_token
|
||||
pages_directory: dist/
|
||||
remote_url: https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
|
||||
- name: publish-gitea
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
@ -225,16 +243,19 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: publish
|
||||
image: plugins/gh-pages
|
||||
image: thegeeklab/drone-git-action
|
||||
settings:
|
||||
action:
|
||||
- pages
|
||||
author_email: shipper@rknet.org
|
||||
author_name: shipper
|
||||
branch: docs
|
||||
message: auto-update documentation
|
||||
netrc_machine: gitea.rknet.org
|
||||
pages_directory: docs/
|
||||
password:
|
||||
netrc_password:
|
||||
from_secret: gitea_token
|
||||
pages_directory: docs/
|
||||
remote_url: https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}
|
||||
target_branch: docs
|
||||
username:
|
||||
from_secret: gitea_username
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
@ -279,6 +300,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: f458850edd26300dda4a118e6c8cadffb9575528439efc6efff9f11cadb2a492
|
||||
hmac: c06824306d3dc8eb1dee7bf5ffa5e00408498795f5967d0b93f93ea088e24d6a
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user