Working on releaser.

This commit is contained in:
Remco Tolsma 2022-10-21 13:51:05 +02:00
parent 50b02db331
commit 5ec8f4c223
3 changed files with 47 additions and 0 deletions

13
.github/scripts/README.md vendored Normal file
View File

@ -0,0 +1,13 @@
# WooCommerce Subscriptions Releaser
## WooCommerce Helper
> **Note**
> WooCommerce Helper is part of WooCommerce as of version 3.1. Purchase, connect, download products, and activate keys in one place with ease. Read more at Managing WooCommerce.com subscriptions.
http://woodojo.s3.amazonaws.com/downloads/woothemes-updater/woothemes-updater.zip
## WooCommerce API
- https://woocommerce.com/wc-api/product-key-api
- https://woocommerce.com/wc-api/product-key-api?request=check

15
.github/scripts/release.php vendored Normal file
View File

@ -0,0 +1,15 @@
<?php
function line( $text = '' ) {
echo $text, PHP_EOL;
}
function run( $command, &$result_code = null ) {
line( $command );
$last_line = system( $command, $result_code );
line();
return $last_line;
}

19
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Release
on:
schedule:
- cron: '0 10 * * *'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: php .github/scripts/release.php