From f64e9ec3a7542abb015de11b300ea0480afcffe1 Mon Sep 17 00:00:00 2001 From: rolendyen Date: Fri, 16 Sep 2022 14:07:15 +0800 Subject: [PATCH] Create deploy-staging.yml --- .github/workflows/deploy-staging.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy-staging.yml diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml new file mode 100644 index 0000000..ee03688 --- /dev/null +++ b/.github/workflows/deploy-staging.yml @@ -0,0 +1,25 @@ +# This is a basic workflow to help you get started with Actions + +name: Stage the app +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + pull_request: + types: [labeled] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + if: contains(github.event.pull_request.labels.*.name, 'stage') + steps: + - uses: actions/checkout@v3 + + - name: Run a one-line script + run: echo Hello, world! + + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project.