From f3d6efd78fea812de6685baede31d8c21bce4c53 Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Sat, 30 Sep 2023 09:52:11 +0200 Subject: [PATCH] add: deployment --- .github/workflows/deploy.yaml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..f4ff964 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,36 @@ +name: Deployment + +on: + push: + branches: [ develop, new-version ] + +jobs: + build: + + runs-on: ubuntu-latest + timeout-minutes: 25 + strategy: + matrix: + node-version: [ 20.x ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Cache + uses: actions/cache@v1 + with: + path: node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-modules- + + - name: Prepare and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + npm install + npm run ng -- deploy