From cf2bd3f876daba2c871b66c0f32897332e3d1291 Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:33:17 +0200 Subject: [PATCH] Try add Github builds Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3b361cd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Example Push Action +on: + push: + branches: + - "master" + workflow_dispatch: + + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + - run: npm install + - run: npm run build + - run: | + mv dist/ /tmp + rm -rf * .gitignore .github .vite-ssg-temp .dockerignore + git checkout -b built-ssg + git config user.name github-actions + git config user.email github-actions@github.com + mv /tmp/dist/* . + mv /tmp/dist/.* . + git add . + git commit -m "Build" + git push