Skip to content

Commit

Permalink
Merge pull request #12 from anishghimire862/cleavr-github-actions-290f2c
Browse files Browse the repository at this point in the history
[Cleavr] enable GitHub Actions
  • Loading branch information
anishghimire862 authored Jan 8, 2024
2 parents f82111a + feb7ef9 commit 60a62d5
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/cleavr_jkuc3ndvtu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@


# 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 }}"}'

0 comments on commit 60a62d5

Please sign in to comment.