scripts/service: automate loop hide on OverlayFS KSU #70
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout webui branch | |
uses: actions/checkout@v4 | |
with: | |
ref: webui | |
- name: Build webui branch | |
run: | | |
npm install | |
npm run build | |
- name: Copy dist folder to a temporary location | |
run: | | |
cp -r dist/ ../dist-temp/ | |
- name: Checkout v1.5.2+ branch | |
uses: actions/checkout@v4 | |
with: | |
ref: v1.5.2+ | |
- name: Remove old contents from webroot folder | |
run: | | |
rm -rf webroot/* | |
- name: Copy contents from dist-temp to webroot | |
run: | | |
cp -r ../dist-temp/* webroot/ | |
- name: Update version with git HEAD | |
run: | | |
RANDOM_STRING=$(git rev-parse --short HEAD | cut -c1-7) | |
echo "BUILD_ID=${RANDOM_STRING}" >> $GITHUB_ENV | |
sed -i "s/version=v1.5.2-R.*/version=v1.5.2-CI-${RANDOM_STRING}/" module.prop | |
- name: Upload release artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release-1.5.2+_${{ env.BUILD_ID }} | |
path: ${{ github.workspace }} | |
exclude: | | |
.git/** | |
.github/** | |
node_modules/** | |
src/** | |
tests/** |