Skip to content

Commit 0244c85

Browse files
committed
chore: run GoReleaser with GitHub actions
1 parent 1c8017a commit 0244c85

2 files changed

Lines changed: 42 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Unshallow
16+
run: git fetch --prune --unshallow
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: 1.15
22+
23+
- name: Generate changelog
24+
run: |
25+
mkdir .bin
26+
curl -L https://github.com/git-chglog/git-chglog/releases/download/0.9.1/git-chglog_linux_amd64 -o .bin/git-chglog
27+
chmod +x .bin/git-chglog
28+
.bin/git-chglog -c .github/changelog/config.yml -o .bin/DRAFT.md $(git describe --tags $(git rev-list --tags --max-count=1))
29+
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v2
32+
with:
33+
version: latest
34+
args: release -f .github/goreleaser.yml --rm-dist --release-notes=.bin/DRAFT.md
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

cloudsigma.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
107107
Name: "cloudsigma-cpu-type",
108108
Usage: "CPU type",
109109
},
110-
mcnflag.StringFlag{
111-
EnvVar: "CLOUDSIGMA_DRIVE_NAME",
112-
Name: "cloudsigma-drive-name",
113-
Usage: "CloudSigma drive name",
114-
Value: defaultDriveName,
115-
},
110+
//mcnflag.StringFlag{
111+
// EnvVar: "CLOUDSIGMA_DRIVE_NAME",
112+
// Name: "cloudsigma-drive-name",
113+
// Usage: "CloudSigma drive name",
114+
// Value: defaultDriveName,
115+
//},
116116
mcnflag.IntFlag{
117117
EnvVar: "CLOUDSIGMA_DRIVE_SIZE",
118118
Name: "cloudsigma-drive-size",

0 commit comments

Comments
 (0)