Skip to content

Commit

Permalink
Merge pull request #10 from Kosholadka/ops/automate-deployment-on-Git…
Browse files Browse the repository at this point in the history
…Hub-Pages

ops: create file deploy.yml in .github/workflows
  • Loading branch information
ekaterinailiushenko authored Sep 13, 2024
2 parents 94f22e7 + 30391b3 commit cc55143
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy to GitHub Pages

on:
release:
types: [published]

jobs:
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
run: npm run build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit cc55143

Please sign in to comment.