Skip to content

Commit

Permalink
Update GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthereal committed Sep 30, 2023
1 parent f282fd3 commit 765616a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build

on:
push:
repository_dispatch:
pull_request:

jobs:
Expand All @@ -13,13 +12,12 @@ jobs:
matrix:
os: [ macos-latest, ubuntu-latest ]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ^1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
go-version-file: go.mod
check-latest: true
- uses: actions/checkout@v3
- name: Compile
run: make install
test:
Expand All @@ -29,13 +27,12 @@ jobs:
matrix:
os: [ macos-latest, ubuntu-latest ]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ^1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
go-version-file: go.mod
check-latest: true
- uses: actions/checkout@v3
- name: Test
run: make test
env:
Expand All @@ -46,14 +43,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Vet
run: make vet
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Docker
run: make docker_build
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ jobs:
if: "!contains(github.ref, '-')" # skip prereleases
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version-file: go.mod
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
version: latest
version: v1.21.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -32,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
needs: [release]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
Expand Down

0 comments on commit 765616a

Please sign in to comment.