You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2020/08/24 12:50:10 UTC

[cordova-coho] branch master updated: ci: add nightly build workflow (#272)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-coho.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e42ef5  ci: add nightly build workflow (#272)
3e42ef5 is described below

commit 3e42ef50bdeceee7c1ff6c7a482b510b5778c1af
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Mon Aug 24 21:50:05 2020 +0900

    ci: add nightly build workflow (#272)
---
 .github/workflows/nightly.yml | 109 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 109 insertions(+)

diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
new file mode 100644
index 0000000..b31b9c7
--- /dev/null
+++ b/.github/workflows/nightly.yml
@@ -0,0 +1,109 @@
+name: Cordova Nightly
+
+on:
+  workflow_dispatch:
+    inputs:
+      dispatchReason:
+        description: 'Reason of Manual Dispatch'
+        required: true
+        default: 'Re-run broken nightly build'
+
+      verbose:
+        description: 'Enable Verbose'
+        required: true
+        default: 'false'
+
+  schedule:
+    - cron: '0 0 * * *'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    env:
+      NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - uses: actions/setup-node@v2.1.1
+        with:
+          node-version: 14.x
+          registry-url: 'https://registry.npmjs.org'
+
+      - name: Dispatch Inputs
+        run: |
+          echo "Dispatch Reason: ${{ github.event.inputs.dispatchReason }}"
+          echo "Enable Verbose: ${{ github.event.inputs.verbose }}"
+
+      - name: Cordova Coho - Setup
+        run: |
+          npm i
+          npm link
+
+      - name: Cordova Coho - Create Nightlies
+        run: |
+          cd ..
+          coho nightly \
+            -r cli \
+            -r lib \
+            -r common \
+            -r fetch \
+            -r serve \
+            -r create \
+            -r node-xcode \
+            -r android \
+            -r electron \
+            -r ios \
+            --pretend \
+            --verbose ${{ github.event.inputs.verbose == 'true' }}
+
+      - name: NPM Publish - cordova-cli
+        run: |
+          cd ../cordova-cli
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-lib
+        run: |
+          cd ../cordova-lib
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-common
+        run: |
+          cd ../cordova-common
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-fetch
+        run: |
+          cd ../cordova-fetch
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-serve
+        run: |
+          cd ../cordova-serve
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-create
+        run: |
+          cd ../cordova-create
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-node-xcode
+        run: |
+          cd ../cordova-node-xcode
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-android
+        run: |
+          cd ../cordova-android
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-electron
+        run: |
+          cd ../cordova-electron
+          npm publish --tag nightly
+
+      - name: NPM Publish - cordova-ios
+        run: |
+          cd ../cordova-ios
+          npm publish --tag nightly


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org