Cloud check in action #324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cloud check in action | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
watch: | |
types: started | |
workflow_dispatch: | |
schedule: | |
- cron: 35 3 * * * | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: user | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- name: init secrets | |
uses: shine1594/secrets-to-env-action@master | |
with: | |
secrets: ${{ toJSON(secrets) }} | |
secrets_env: production | |
prefix_prod: '' | |
file_name_prod: .env | |
- name: init | |
run: npm install | |
- name: run | |
id: run | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
command: npm start |