From f9ca259f052242afcb566ed72c33cf5ebe19cebb Mon Sep 17 00:00:00 2001 From: DjonniStorm Date: Sat, 21 Dec 2024 12:28:11 +0400 Subject: [PATCH] check3 --- .github/workflows/deploy.yml | 46 ++++++++++++++---------------------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6ec1e4c..6e85cf4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,33 +14,23 @@ concurrency: cancel-in-progress: true jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + Build-and-Deploy: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' - - name: Install dependencies - run: npm ci - - name: Build - env: - VITE_BOT_TOKEN: ${{ secrets.VITE_BOT_TOKEN }} - run: npm run build - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: './dist' - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist \ No newline at end of file + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Install npm deps + working-directory: ./ + run: npm i + - name: Build app + env: + VITE_BOT_TOKEN: ${{ secrets.VITE_BOT_TOKEN }} + working-directory: ./ + run: npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist \ No newline at end of file