Skip to content

Commit

Permalink
Switch "pre-release" to auto, remove obsolete changelog generation, c…
Browse files Browse the repository at this point in the history
…hange event to "release: [published]" (#453)

Co-authored-by: Jerry Jackson <jerry@weave.works>
  • Loading branch information
jrryjcksn and weave-e2e-quickstart committed Jul 8, 2021
1 parent d017d6e commit 3ff12b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 62 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/changelog-ci-config.json

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/changelog.yaml

This file was deleted.

16 changes: 2 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: release

on:
push:
tags: [ 'v*' ]

release:
types: [published]
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -16,16 +15,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Download release notes utility
env:
GH_REL_URL: https://github.com/buchanae/github-release-notes/releases/download/0.2.0/github-release-notes-linux-amd64-0.2.0.tar.gz
run: cd /tmp && curl -sSL ${GH_REL_URL} | tar xz && sudo mv github-release-notes /usr/local/bin/
- name: Generate release notes
run: |
echo 'CHANGELOG' > /tmp/release.txt
github-release-notes -org weaveworks -repo weave-gitops -include-author -since-latest-release >> /tmp/release.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set env var
run: |
make dependencies
Expand All @@ -35,7 +24,6 @@ jobs:
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --release-notes=/tmp/release.txt --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ env.BRANCH }}
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ before:
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
prerelease: true
prerelease: auto
archives:
-
format: binary
Expand Down Expand Up @@ -68,4 +68,4 @@ builds:
- darwin
goarch:
- arm64

0 comments on commit 3ff12b8

Please sign in to comment.