wp-settings-framework/.github/workflows/release.yml
Owais ahmed a91bb638d4
feat: add Usage example for settings page fields (#2)
* 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
2025-08-12 01:20:04 +05:00

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 }}