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/23 15:33:42 UTC

[cordova-coho] branch ci/add-nightly created (now 8dbb481)

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

erisu pushed a change to branch ci/add-nightly
in repository https://gitbox.apache.org/repos/asf/cordova-coho.git.


      at 8dbb481  ci: add nightly build workflow

This branch includes the following new commits:

     new 8dbb481  ci: add nightly build workflow

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[cordova-coho] 01/01: ci: add nightly build workflow

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 8dbb481f2b16018f2443a4a8f1f8620f1fb7eedc
Author: Erisu <el...@gmail.com>
AuthorDate: Mon Aug 24 00:33:07 2020 +0900

    ci: add nightly build workflow
---
 .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