mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 03:31:57 +02:00
release workflow (#70)
This commit is contained in:
parent
d61a2eee2e
commit
42cf116333
46
.github/workflows/release.yml
vendored
46
.github/workflows/release.yml
vendored
@ -10,14 +10,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: setup-go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
with:
|
||||||
go-version: 1.19.3
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: setup-node
|
- run: git fetch --force --tags
|
||||||
uses: actions/setup-node@v3
|
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '>=1.19.3'
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
@ -29,30 +32,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI: ""
|
CI: ""
|
||||||
|
|
||||||
- name: go install
|
- uses: goreleaser/goreleaser-action@v2
|
||||||
run: go install -ldflags "-X github.com/openziti-test-kitchen/zrok/build.Version=${{ github.ref }} -X github.com/openziti-test-kitchen/zrok/build.Hash=${{ github.sha }}" ./...
|
|
||||||
|
|
||||||
- name: test
|
|
||||||
run: go test -v ./...
|
|
||||||
|
|
||||||
- name: release
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
id: create_release
|
|
||||||
with:
|
with:
|
||||||
draft: false
|
distribution: goreleaser
|
||||||
prerelease: false
|
version: latest
|
||||||
release_name: ${{ github.ref }}
|
args: release --rm-dist
|
||||||
tag_name: ${{ github.ref }}
|
ldflags: "-X github.com/openziti-test-kitchen/zrok/build.Version=${{ github.ref }} -X github.com/openziti-test-kitchen/zrok/build.Hash=${{ github.sha }}"
|
||||||
body_path: CHANGELOG.md
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: upload-ubuntu-build
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ~/go/bin/zrok
|
|
||||||
asset_name: zrok-ubuntu-amd64
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user