From 9ffaaca568e9d0723385ccabd94f98a2cf3ef776 Mon Sep 17 00:00:00 2001 From: itsscb Date: Tue, 4 Mar 2025 21:24:50 +0100 Subject: [PATCH] chore: add deployment workflow for Shuttle in deploy.yml --- .github/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..6952b25 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy to Shuttle + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '22' + + - name: Cache Node.js modules + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + + - name: Build Frontend + run: | + cd frontend + npm ci + ng build + + - uses: shuttle-hq/deploy-action@v0.4.0 + with: + deploy-key: ${{ secrets.SHUTTLE_API_KEY }}