0
0
mirror of https://github.com/thegeeklab/wp-git-action.git synced 2024-11-24 22:50:39 +00:00

ci: use git-action plugin to update docs branch (#9)

This commit is contained in:
Robert Kaussow 2022-12-03 13:43:09 +01:00 committed by GitHub
parent 2160d9ac22
commit 6fa2f5060b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 10 deletions

View File

@ -228,10 +228,15 @@ local PipelineDocs = {
name: 'publish', name: 'publish',
image: 'plugins/gh-pages', image: 'plugins/gh-pages',
settings: { settings: {
username: { from_secret: 'github_username' }, action: [
password: { from_secret: 'github_token' }, 'pages',
pages_directory: '_docs/', ],
target_branch: 'docs', author_email: 'bot@thegeeklab.de',
author_name: 'thegeeklab-bot',
message: 'auto-update documentation',
branch: 'gh-pages',
pages_directory: 'docs/',
netrc_password: { from_secret: 'github_token' },
}, },
when: { when: {
ref: ['refs/heads/main'], ref: ['refs/heads/main'],

View File

@ -343,12 +343,15 @@ steps:
- name: publish - name: publish
image: plugins/gh-pages image: plugins/gh-pages
settings: settings:
pages_directory: _docs/ action:
password: - pages
author_email: bot@thegeeklab.de
author_name: thegeeklab-bot
branch: gh-pages
message: auto-update documentation
netrc_password:
from_secret: github_token from_secret: github_token
target_branch: docs pages_directory: docs/
username:
from_secret: github_username
when: when:
ref: ref:
- refs/heads/main - refs/heads/main
@ -457,6 +460,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 7e8f9c0185f2416c4250a175458905fe516c706a9dd4b0d38c201b22bc5b1b3d hmac: 89079eef07225acb12f8eeab92f29de04b4a46340ba265b6a9c9bfc6c75c18aa
... ...