Skip to content

Commit

Permalink
check3
Browse files Browse the repository at this point in the history
  • Loading branch information
DjonniStorm committed Dec 21, 2024
1 parent cdb147f commit f9ca259
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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

0 comments on commit f9ca259

Please sign in to comment.