Skip to content

Commit

Permalink
completely seperate ci files
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Sep 19, 2022
1 parent c912c41 commit f93ff83
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: ci-build
on:
push:
branches: [master]
tags:
- "v*"
pull_request:
branches: [master]

Expand All @@ -22,23 +20,3 @@ jobs:
- uses: golangci/golangci-lint-action@v3
- run: |
go build -v .
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Unshallow
run: git fetch --prune --unshallow
- uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci-release

on:
push:
tags:
- "v*"

jobs:
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Unshallow
run: git fetch --prune --unshallow
- uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

0 comments on commit f93ff83

Please sign in to comment.