-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from dealicious-inc/develop
chore: change github action files
- Loading branch information
Showing
2 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: itsm_mono | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
on: | ||
push: | ||
# Inputs the workflow accepts. | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "greet" | ||
Build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Compile | ||
run: echo Hello, Dealicious | ||
|
||
DeployDev: | ||
name: Deploy to Dev | ||
if: github.event_name == 'pull_request' | ||
needs: [Build] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: Development | ||
url: 'http://dev.myapp.com' | ||
steps: | ||
- name: Deploy | ||
run: echo I am developing! | ||
|
||
DeployStaging: | ||
name: Deploy to Staging | ||
if: github.event.ref == 'refs/heads/main' | ||
needs: [Build] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: Staging | ||
url: 'http://test.myapp.com' | ||
steps: | ||
- name: Deploy | ||
run: echo I am developing! | ||
|
||
DeployProd: | ||
name: Deploy to Production | ||
needs: [DeployStaging] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: Production | ||
url: 'http://www.myapp.com' | ||
steps: | ||
- name: Deploy | ||
run: echo I am deploying! |
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