Skip to content

Commit

Permalink
fix: gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpaceNoodle committed Mar 3, 2024
1 parent 8a56a4a commit eeda29a
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Deploy
name: Build and Deploy

on: [push]
on:
push:
branches:
- master

permissions:
contents: write

jobs:
Deploy:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20.11.1
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install Dependencies
run: npm install
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm ci
npm run build
- run: echo "Started building the project"
- run: npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs # The folder the action should deploy.

0 comments on commit eeda29a

Please sign in to comment.