Skip to content

Test CI

Test CI #6

Workflow file for this run

name: Build assets
on:
push:
branches:
- master
tags:
- '*'
jobs:
build-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetches all history for .Git commits and tags
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install dependencies
run: npm ci --force
- name: Build assets
run: npm run build
- name: Commit changes
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git add -f build/ # Forcefully add the build folder
git commit --amend --no-edit
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})
git push origin master --force-with-lease
echo "Done!"