mirror of
https://gh.wpcy.net/https://github.com/oblakstudio/wp-plugin-installer.git
synced 2026-07-14 18:36:23 +08:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- alpha
|
|
- beta
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.OBLAKBOT_PAT }}
|
|
- name: Import GPG key
|
|
uses: crazy-max/ghaction-import-gpg@v6
|
|
id: gpg
|
|
with:
|
|
gpg_private_key: ${{ secrets.OBLAKBOT_GPG_KEY }}
|
|
passphrase: ${{ secrets.OBLAKBOT_GPG_PASS }}
|
|
git_config_global: true
|
|
git_user_signingkey: true
|
|
git_commit_gpgsign: true
|
|
- name: Semantic Release
|
|
uses: cycjimmy/semantic-release-action@v4
|
|
with:
|
|
extra_plugins: |
|
|
conventional-changelog-conventionalcommits
|
|
@semantic-release/github
|
|
@semantic-release/exec
|
|
env:
|
|
GIT_AUTHOR_NAME: ${{ steps.gpg.outputs.name}}
|
|
GIT_AUTHOR_EMAIL: ${{ steps.gpg.outputs.email}}
|
|
GIT_COMMITTER_NAME: ${{ steps.gpg.outputs.name}}
|
|
GIT_COMMITTER_EMAIL: ${{ steps.gpg.outputs.email}}
|
|
GITHUB_TOKEN: ${{ secrets.OBLAKBOT_PAT }}
|