diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1dabef5..a2d4731 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,8 +4,6 @@ on: push: branches: - master - tags: - - '*' pull_request: branches: - master diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml new file mode 100644 index 0000000..647b1e0 --- /dev/null +++ b/.github/workflows/tags.yml @@ -0,0 +1,22 @@ +--- +name: Tags Workflow +on: + push: + tags: + - '*' +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '1.19.2' + - name: Build + run: go build -o semangit . + - name: Smoke test + run: ./semangit --help + - name: Upload binary to release + uses: svenstaro/upload-release-action@v2 + with: + file: semangit