From d8e25a647e72ff359e2b22212f6f8e20e66011cf Mon Sep 17 00:00:00 2001 From: LinuxRocks2000 Date: Wed, 10 Apr 2024 12:24:32 -0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a5b1475 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +on: + push: + branches: [ rewrite ] + pull_request: + branches: [ rewrite ] +permissions: + contents: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + repository: LinuxRocks2000/sitix-rewrite + ref: rewrite + path: sitix-rewrite + - uses: actions/checkout@v2 + with: + path: sitix-ghp-test + - name: Build website + run: | + cd sitix-ghp-test + git checkout gh-pages + ../sitix-rewrite/bin/sitix-ubuntu site -o gh-pages + mv gh-pages .. + rm -rf site + mv ../gh-pages/* . + git config --global user.name Robot + git config --global user.email notan@emailaddr.ess + git add . + git commit -am "automated build" + git branch + git push --force origin rewrite:gh-pages