Skip to content

Commit

Permalink
fix: use go 1.19 to build extension #6
Browse files Browse the repository at this point in the history
  • Loading branch information
michimani committed Dec 5, 2022
1 parent a419c8f commit a2260aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/onlytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
name: Build test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Check out code
uses: actions/checkout@v3

Expand Down
28 changes: 10 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,16 @@ jobs:
- name: Test code
run: go test github.com/michimani/aws-lambda-api-go/... -shuffle=on

setup-release:
name: Setup release
create-release:
name: Build extension
needs: test
runs-on: ubuntu-latest
steps:
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
go-version: 1.19

create-release:
name: Create new release
needs: setup-release
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

Expand All @@ -52,10 +41,13 @@ jobs:
make build
cd bin && zip -r extension.zip extensions/
- name: Upload release asset
- name: Create new release with asset
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
files: bin/extension.zip
name: extension.zip

0 comments on commit a2260aa

Please sign in to comment.