mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-08 04:14:32 +00:00
fixup! Switch to goreleaser.
This commit is contained in:
@@ -114,25 +114,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
args: ./...
|
args: ./...
|
||||||
|
|
||||||
create-dummy-release:
|
# create-dummy-release:
|
||||||
needs: [ prepare, test, code_scans ]
|
# needs: [ prepare, test, code_scans ]
|
||||||
name: Create empty release
|
# name: Create empty release
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout repo
|
# - name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
- name: Get list of the commits since last release
|
# - name: Get list of the commits since last release
|
||||||
run: |
|
# run: |
|
||||||
echo "$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s")" > .release_notes
|
# echo "$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s")" > .release_notes
|
||||||
- name: Create empty release
|
# - name: Create empty release
|
||||||
uses: ncipollo/release-action@v1
|
# uses: ncipollo/release-action@v1
|
||||||
with:
|
# with:
|
||||||
bodyFile: ./.release_notes
|
# bodyFile: ./.release_notes
|
||||||
name: version ${{ needs.prepare.outputs.RELEASE_VERSION }}
|
# name: version ${{ needs.prepare.outputs.RELEASE_VERSION }}
|
||||||
token: ${{ secrets.GHCR_TOKEN }}
|
# token: ${{ secrets.GHCR_TOKEN }}
|
||||||
tag: ${{ needs.prepare.outputs.RELEASE_VERSION }}
|
# tag: ${{ needs.prepare.outputs.RELEASE_VERSION }}
|
||||||
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
|
# prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
|
||||||
allowUpdates: true
|
# allowUpdates: true
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [ prepare, test, code_scans ]
|
needs: [ prepare, test, code_scans ]
|
||||||
@@ -197,17 +197,17 @@ jobs:
|
|||||||
needs: [ prepare, test, code_scans, create-dummy-release ]
|
needs: [ prepare, test, code_scans, create-dummy-release ]
|
||||||
name: Binary compilation and release
|
name: Binary compilation and release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
|
# # build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
|
||||||
goos: [linux, windows, darwin]
|
# goos: [linux, windows, darwin]
|
||||||
goarch: ["386", amd64, arm64]
|
# goarch: ["386", amd64, arm64]
|
||||||
exclude:
|
# exclude:
|
||||||
- goarch: "386"
|
# - goarch: "386"
|
||||||
goos: darwin
|
# goos: darwin
|
||||||
- goarch: arm64
|
# - goarch: arm64
|
||||||
goos: windows
|
# goos: windows
|
||||||
continue-on-error: [true]
|
# continue-on-error: [true]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ builds:
|
|||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X main.PKG_VERSION={{.Version}}
|
- -s -w -X main.PKG_VERSION={{.Version}}
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=1
|
- CGO_ENABLED=0
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
# - >-
|
# - >-
|
||||||
# {{- if eq .Os "darwin" }}
|
# {{- if eq .Os "darwin" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user