Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaKotl committed Dec 6, 2024
1 parent 3f3e28a commit 68223ae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main

jobs:
# Build job
build:
name: Build
runs-on: ubuntu-latest
Expand All @@ -26,19 +25,18 @@ jobs:
- name: Build project
run: npm run build

- name: List build output
run: ls -la ./dist # Check if build files exist

- name: Copy index.html to 404.html
run: cp ./dist/index.html ./dist/404.html

- name: List dist directory contents
run: ls -la ./dist

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
name: production-files
path: ./dist

# Deployment job
deploy:
name: Deploy
needs: build
Expand Down

0 comments on commit 68223ae

Please sign in to comment.