aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: e8c64d02bc55479cc9899bb25df9784fe2cad52e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
on: push


jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-java@v1
        with:
          java-version: 8
      - uses: gradle/gradle-build-action@v2
        with:
          arguments: build
          build-root-directory: console
      - 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