summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/release.yml
blob: b93aee4084842e93a02e56e3228e8e4d7ee8e346 (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
name: release

on:
  push:
    tags:
      - v[0-9]+.*

jobs:
  build:
    runs-on: ubuntu-16.04

    steps:
      - name: checking out
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: releasing
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          wget https://github.com/goreleaser/goreleaser/releases/download/v0.108.0/goreleaser_amd64.deb
          sudo dpkg -i goreleaser_amd64.deb
          rm goreleaser_amd64.deb
          cd /home/runner/work/gobgp/gobgp && goreleaser release