Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Merge pull request #138 from iamtommetcalfe/dependabot/npm_and_yarn/t… #123

Merge pull request #138 from iamtommetcalfe/dependabot/npm_and_yarn/t…

Merge pull request #138 from iamtommetcalfe/dependabot/npm_and_yarn/t… #123

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build
env:
VITE_OMDB_API_KEY: ${{ secrets.OMDB_API_KEY }}
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Deploy to GitHub Pages'