Skip to content

Commit

Permalink
fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed May 25, 2024
1 parent 8ca84e2 commit ac4e818
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to Edge
on:
push:
branches:
- main
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -16,7 +16,7 @@ permissions:
concurrency:
group: main-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
# Single deploy job since we're just deploying
Expand All @@ -34,15 +34,18 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build
run: yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: './frontend/dist'
path: './frontend/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit ac4e818

Please sign in to comment.