-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (34 loc) · 1.06 KB
/
package.yml
File metadata and controls
46 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Package and Upload Plugin
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: composer install
- name: Run PHP_CodeSniffer
run: vendor/bin/phpcs proxy-aware-https-fix.php --standard=WordPress --report=full
continue-on-error: true
- name: Auto-fix with PHPCBF
run: vendor/bin/phpcbf proxy-aware-https-fix.php --standard=WordPress
- name: Upload fixed file
if: always()
uses: actions/upload-artifact@v4
with:
name: fixed-php
path: proxy-aware-https-fix.php
- name: Zip plugin
run: zip -r proxy-aware-https-fix.zip proxy-aware-https-fix.php README.md LICENSE CHANGELOG.md composer.lock
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: proxy-aware-https-fix.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}