mirror of
https://gh.wpcy.net/https://github.com/WPTechnix/wp-settings-framework.git
synced 2026-05-05 17:41:10 +08:00
* feat: added AssetManager managing scripts and styles of fields * chore: updated README.md and ci/release.yml workflow * chore: added examples/README.md describing usage example * chore: added examples/settings-without-tabs.php * chore: added examples/settings-with-tabs.php * chore: updated CHANGELOG.md * chore: updated ci.yml
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
# .github/workflows/release.yml
|
|
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
name: Create Release
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- name: Generate a token
|
|
id: generate_token
|
|
uses: actions/create-github-app-token@v1
|
|
with:
|
|
app-id: ${{ secrets.APP_ID }}
|
|
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ steps.generate_token.outputs.token }} # Use the app's token for checkout
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install npm dependencies
|
|
run: npm install
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
|
|
- name: Create Release
|
|
run: npm run release -- --ci
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
|