Update build.yml
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -1,12 +1,16 @@
|
|||||||
name: Build And Save Log
|
name: Build And Save Log
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches:
|
inputs:
|
||||||
- main
|
environment:
|
||||||
pull_request:
|
description: "Target environment (e.g., staging, production)"
|
||||||
branches:
|
required: true
|
||||||
- main
|
default: "staging"
|
||||||
|
version:
|
||||||
|
description: "Version to deploy"
|
||||||
|
required: false
|
||||||
|
default: "latest"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
APP_NAME: desa-darmasaba-action
|
APP_NAME: desa-darmasaba-action
|
||||||
@@ -119,7 +123,7 @@ jobs:
|
|||||||
source: "."
|
source: "."
|
||||||
target: "/var/www/projects/${{ env.APP_NAME }}/releases/${{ env.APP_VERSION }}"
|
target: "/var/www/projects/${{ env.APP_NAME }}/releases/${{ env.APP_VERSION }}"
|
||||||
|
|
||||||
# Set up environment variables
|
# Set up environment variables
|
||||||
- name: Set up environment variables
|
- name: Set up environment variables
|
||||||
run: |
|
run: |
|
||||||
rm -r .env
|
rm -r .env
|
||||||
|
|||||||
Reference in New Issue
Block a user