feat: add GitHub-powered updates to WordPress admin
Build plugin release / release (push) Failing after 4s
Build plugin release / release (push) Failing after 4s
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
name: Build plugin release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Validate version and build ZIP
|
||||
env:
|
||||
RELEASE_TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
VERSION="${RELEASE_TAG#v}"
|
||||
grep -q "Version: ${VERSION}$" dabestaniha-authenticate-bridge.php
|
||||
mkdir -p build/mahak-authenticate-bridge dist
|
||||
rsync -a \
|
||||
--exclude='.git/' \
|
||||
--exclude='.github/' \
|
||||
--exclude='build/' \
|
||||
--exclude='dist/' \
|
||||
--exclude='test/' \
|
||||
./ build/mahak-authenticate-bridge/
|
||||
cd build
|
||||
zip -qr ../dist/mahak-authenticate-bridge.zip mahak-authenticate-bridge
|
||||
|
||||
- name: Publish GitHub release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_TAG: ${{ github.ref_name }}
|
||||
run: gh release create "$RELEASE_TAG" dist/mahak-authenticate-bridge.zip --generate-notes --title "$RELEASE_TAG"
|
||||
Reference in New Issue
Block a user