From ed5889d825e6ac63973692700ea5cbdaae6500f8 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 26 Aug 2022 15:29:41 +0200 Subject: moveshitaround --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..384b3e1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ + +on: push + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: | + cd console + ./gradlew build + - run: | + mkdir dist + cp -r static/* dist + mkdir dist/beta + cp -r console/build/distributions/* dist/beta + - uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist + cname: exhq.gay + + -- cgit From c6c56d11b83d65c69b09007c7b43f0788b958ff2 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 26 Aug 2022 15:38:21 +0200 Subject: gradlebuild --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 384b3e1..e8c64d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,9 +10,10 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 8 - - run: | - cd console - ./gradlew build + - uses: gradle/gradle-build-action@v2 + with: + arguments: build + build-root-directory: console - run: | mkdir dist cp -r static/* dist -- cgit