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 3ff3df6 commit e9f7eff
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ on:
- main

jobs:
# Build job
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16

Expand All @@ -28,12 +29,10 @@ jobs:
- name: Copy index.html to 404.html
run: cp ./dist/index.html ./dist/404.html

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
name: Deploy
needs: build
Expand All @@ -42,7 +41,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: production-files
path: ./dist
Expand All @@ -51,4 +50,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./dist

0 comments on commit e9f7eff

Please sign in to comment.