Skip to content

Update build.yml

Update build.yml #8

Workflow file for this run

on:
push:
branches:
- master
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v2
with:
node-version: '22'
- name: 🔨 Build Project
run: |
npm install
npm run build
- name: 📂 Push files to build branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: build
FOLDER: build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"