Skip to content

Commit

Permalink
chore: Upgrade Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bpazy committed May 4, 2024
1 parent fd2a2e1 commit 2e14c85
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 73 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
release:
types: [published]
push:
tags:
- '*'
name: Handle Release

jobs:
build:
name: Create release-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.22
- run: make
- name: Upload the artifacts
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/*
overwrite: true
file_glob: true
tag: ${{ github.ref }}
34 changes: 0 additions & 34 deletions .github/workflows/build.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/deploy-release.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- run: go test -v ./...

0 comments on commit 2e14c85

Please sign in to comment.