Skip to content

Commit

Permalink
Merge pull request #45 from CameronRP/use-github-actions
Browse files Browse the repository at this point in the history
Use github actions instead of travis
  • Loading branch information
CameronRP authored Sep 25, 2024
2 parents 38d93f6 + ce8530c commit 4125d73
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 69 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Go CI and Release

on:
push:
branches:
- '**'
tags:
- '*'
pull_request:
branches:
- '**'

jobs:
build:
uses: TheCacophonyProject/github-actions-templates/.github/workflows/[email protected]
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
project_name: thermal-uploader

version: 2

release:
github:
owner: TheCacophonyProject
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

48 changes: 0 additions & 48 deletions randstring.go

This file was deleted.

3 changes: 1 addition & 2 deletions uploadjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bufio"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -271,7 +270,7 @@ type metadata map[string]interface{}

func loadMeta(filename string) (metadata, error) {
var meta metadata
byteValue, err := ioutil.ReadFile(filename)
byteValue, err := os.ReadFile(filename)
if err != nil {
return meta, err
}
Expand Down

0 comments on commit 4125d73

Please sign in to comment.