Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

feat: refactor pipelines after kubernetes removal #139

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .github/workflows/continous-delivery.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/continous-deployment.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/release-binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Release topgun

"on":
push:
tags:
- "v*"

jobs:
release:
name: "Release for ${{ matrix.os }}-${{ matrix.arch }}"
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
arch: [amd64, arm64]
os: [linux, darwin]
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0

steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ inputs.tag }}

- name: Build binary
run: go build -o dist/topgun-${{ matrix.os }}-${{ matrix.arch }} ./cmd/topgun-service/main.go

- name: Bundle binary in archive
uses: thedoctor0/zip-release@master
with:
type: zip
directory: dist
filename: topgun-${{ matrix.os }}-${{ matrix.arch }}.zip

- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*.zip
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading