diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8104a5c..61df701 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,30 +1,21 @@ -name: Deploy - -on: - push: - branches: - - master - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Build - run: npm run build - - - name: Deploy to /var/www - run: | - rm -rf /var/www/os.m1ngdaxie.com/* - cp -r dist/* /var/www/os.m1ngdaxie.com/ \ No newline at end of file + name: Deploy + + on: + push: + branches: + - master + + jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install & Build + run: npm ci && npm run build + + - name: Deploy + run: | + rm -rf /var/www/os.m1ngdaxie.com/* + cp -r dist/* /var/www/os.m1ngdaxie.com/ \ No newline at end of file