Skip to content

Merge pull request #12 from anishghimire862/cleavr-github-actions-290f2c #1

Merge pull request #12 from anishghimire862/cleavr-github-actions-290f2c

Merge pull request #12 from anishghimire862/cleavr-github-actions-290f2c #1

# This GitHub Actions workflow is generated and deployed by https://cleavr.io
# The filename, cleavr_jkuc3ndvtu, of this workflow is tracked from within Cleavr,
# please don't change the name. Though, feel free to add your own steps or tweak
# the existing ones except anything listed below the warning message.
# Read more about Cleavr's GitHub Actions integration feature at: https://docs.cleavr.io/github-actions
name: Deploy flu87rqfk34dq2hz10223.cleavr.one App with Cleavr
on:
workflow_dispatch:
push:
branches:
# This is the branch that gets deployed when a push is made to this repository.
# If you change the default branch in Cleavr under the Webapp's settings, make sure to change it here as well.
- master
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- uses: bahmutov/npm-install@v1
- name: Build app
run: npm run build --production
### --- PLEASE DO NOT MODIFY ANYTHING BELOW THIS LINE --- ###
- name: Generate artifact name
id: artifact
uses: josStorer/get-current-time@v2.0.2
with:
format: YYYYMMDDHHmmss
utcOffset: "+08:00"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: '${{ steps.artifact.outputs.formattedTime }}'
path: build/
if-no-files-found: error
- name: Start Cleavr Deployment
uses: fjogeleit/http-request-action@master
with:
url: '${{ secrets.DEPLOY_TRIGGER_HOOK_cleavr_jkuc3ndvtu }}'
method: 'POST'
timeout: 60000
customHeaders: '{"artifact": "${{ steps.artifact.outputs.formattedTime }}"}'