aboutsummaryrefslogtreecommitdiff
path: root/.forgejo/workflows/build.yml
blob: a117b6803a20fd714801dc104f185610546b2302 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
on: [push]
jobs:
  test:
    runs-on: docker
    steps:
      - uses: https://code.forgejo.org/actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: https://code.forgejo.org/actions/setup-go@v4
        with:
          go-version-file: "go.mod"
      - name: Install dependencies
        run: go mod download
      - name: Build go
        run: go build -o serv -v ./...
      - uses: https://code.forgejo.org/actions/forgejo-release@v1
        with:
          direction: upload
          url: https://gitrepo.ru
          repo: neonxp/serv
          release-dir: neonxp/serv
          token: '${{secrets.RELEASE_TOKEN}}'