Skip to content

Commit

Permalink
add action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tedpearson committed Oct 11, 2022
1 parent 200ff0f commit 374b0af
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release

on:
push:
tags:
- 'v*'

jobs:

build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.19
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Get dependencies
run: go get -v -t -d ./...

- name: Test
run: go test -v .

- name: Build linux-arm
run: env GOOS=linux GOARCH=arm go build -v .
- name: rename linux arm
run: mv electric-usage-downloader electric-usage-downloader-linux-arm

- name: Create release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: electric-usage-downloader-linux-arm
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 374b0af

Please sign in to comment.