Skip to content

Commit

Permalink
swtich to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
edw-defang committed Mar 18, 2024
1 parent d7936bd commit d95748a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ jobs:
name: build_release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: checkout
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum

- name: Download Go dependencies
run: go mod download

- name: build
run: make build
- name: release
uses: actions/create-release@v1
id: create_release

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
draft: false
prerelease: false
release_name: ${{ github.ref_name }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload linux artifact
uses: actions/upload-release-asset@v1
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./acme.zip
asset_name: acme.linux-amd64.zip
asset_content_type: application/zip
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d95748a

Please sign in to comment.