Skip to content

Commit

Permalink
Merge pull request #1 from Valik3201/gh-pages
Browse files Browse the repository at this point in the history
Setting up automatic deployment using GitHub Actions
  • Loading branch information
Valik3201 authored Nov 8, 2023
2 parents 064f081 + 8ac866d commit e25822f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and deploy to GitHub Pages

on:
push:
branches: [main]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1

- name: Install and Build 🔧
run: |
npm ci
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: dist
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "parcel-project-template",
"name": "goit-js-hw-08",
"version": "2.0.0",
"description": "",
"homepage": "https://valik3201.github.io/goit-js-hw-08",
Expand Down

0 comments on commit e25822f

Please sign in to comment.