Skip to content

Commit

Permalink
Merge pull request #16 from dhyanio/dhyanio@8
Browse files Browse the repository at this point in the history
feat(ci): add release ci
  • Loading branch information
dhyanio authored Dec 7, 2024
2 parents 32bd977 + cef792e commit 38e8b54
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 29 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "tagged-release"
on:
workflow_dispatch:
inputs:
version:
description: Bump Version
required: true
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Test
run: go build -v && go test ./...
- name: Build for linux/amd64
run: go build -o discache-all-linux-amd64
- name: Build for linux/arm64
run: GOOS=linux GOARCH=arm64 go build -o discache-all-linux-arm64
- name: Build for mac
run: GOOS=darwin go build -o discache-all-darwin-amd64
- name: Build for mac Apple Silicon
run: GOOS=darwin GOARCH=arm64 go build -o discache-all-darwin-arm64

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.event.inputs.version }}
prerelease: false
files: |
discache-*
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
discache.log
raft-log-*
raft-stable-*
raft-stable-*
discache*

0 comments on commit 38e8b54

Please sign in to comment.