Skip to content

Update buildRelease.yml #13

Update buildRelease.yml

Update buildRelease.yml #13

Workflow file for this run

name: Release Bunker Version
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Build Repo
run: |
npm i && npm run build
- uses: actions/upload-artifact@v4
with:
name: kolf-build-latest-appImage
path: dist/index.html
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/index.html
- name: Create or update the updates branch
run: |
cp dist/index.html .
find . ! -name 'index.html' -not -name '.gitignore' -not -path './.git/*' -type f -exec rm -f {} +
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -B updates
git pull origin updates --rebase
git add -A
git commit -m "Updated bunker"
- name: Push changes
run: |
git push --set-upstream origin updates