2020-04-28 02:32:19 +00:00
|
|
|
name: Nightly builds
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *' # Run at 12 AM UTC.
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Nightly builds
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
build: [master]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{ matrix.build }}
|
|
|
|
- name: Build
|
|
|
|
id: build
|
2020-08-25 16:42:07 +00:00
|
|
|
uses: woocommerce/action-build@v2
|
2020-04-28 02:32:19 +00:00
|
|
|
- name: Deploy nightly build
|
2020-10-20 14:13:41 +00:00
|
|
|
uses: WebFreak001/deploy-nightly@v1.1.0
|
2020-04-28 02:32:19 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: https://uploads.github.com/repos/${{ github.repository }}/releases/25945111/assets{?name,label}
|
|
|
|
release_id: 25945111
|
|
|
|
asset_path: ${{ steps.build.outputs.zip_path }}
|
2020-04-28 14:51:10 +00:00
|
|
|
asset_name: woocommerce-${{ matrix.build }}-nightly.zip
|
2020-04-28 02:32:19 +00:00
|
|
|
asset_content_type: application/zip
|
|
|
|
max_releases: 1
|
|
|
|
update:
|
|
|
|
name: Update nightly tag commit ref
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Update nightly tag
|
2020-11-06 10:34:18 +00:00
|
|
|
uses: richardsimko/github-tag-action@v1.0.5
|
2020-04-28 02:32:19 +00:00
|
|
|
with:
|
|
|
|
tag_name: nightly
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|