From 7fd39851ddba5fd5973da1da728db7513ded489f Mon Sep 17 00:00:00 2001 From: mabdulam Date: Wed, 4 Dec 2024 21:11:38 -0500 Subject: [PATCH] .github\workflows\deploy.yml added --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..badf15a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy + +on: + push: + branches: + - deploy + +jobs: + setup-sample-data: + runs-on: self-hosted + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Node.js Environment + uses: actions/setup-node@v3 + with: + node-version: '14' + + - name: Install Dependencies + run: npm install + + - name: Install ts-node Globally + run: npm install -g ts-node typescript + + - name: Run remove_db.ts Script + run: ts-node remove_db.ts + + - name: Run insert_sample_db.ts Script + run: ts-node insert_sample_db.ts \ No newline at end of file