Skip to content

Commit

Permalink
Revert "Disable goreleaser releases and upload all artifacts manually."
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Kämmerling <[email protected]>
  • Loading branch information
LKaemmerling committed Jan 29, 2020
1 parent d4cb5fb commit 5fa7cdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 130 deletions.
128 changes: 0 additions & 128 deletions .github/workflows/release_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,131 +38,3 @@ jobs:
HC_APPLE_DEVELOPER_USER: ${{ secrets.HC_APPLE_DEVELOPER_USER }}
HC_APPLE_DEVELOPER_PASSWORD: ${{ secrets.HC_APPLE_DEVELOPER_PASSWORD }}
HC_APPLE_IDENTITY: ${{ secrets.HC_APPLE_IDENTITY }}

- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: hcloud ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Changelog File
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/CHANGELOG.md
asset_name: CHANGELOG.md
asset_content_type: text/plain
- name: Upload Checksums File
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/cli_${{ github.ref }}_checksums.txt
asset_name: cli_${{ github.ref }}_checksums.txt
asset_content_type: text/plain
- name: Upload FreeBSD amd64
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-freebsd-amd64.tar.gz
asset_name: hcloud-freebsd-amd64.tar.gz
asset_content_type: application/gzip
- name: Upload FreeBSD 386
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-freebsd-386.tar.gz
asset_name: hcloud-freebsd-386.tar.gz
asset_content_type: application/gzip
- name: Upload FreeBSD armv6
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-freebsd-armv6.tar.gz
asset_name: hcloud-freebsd-armv6.tar.gz
asset_content_type: application/gzip
- name: Upload FreeBSD armv7
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-freebsd-armv7.tar.gz
asset_name: hcloud-freebsd-armv7.tar.gz
asset_content_type: application/gzip
- name: Upload Linux 386
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-linux-386.tar.gz
asset_name: hcloud-linux-386.tar.gz
asset_content_type: application/gzip
- name: Upload Linux amd64
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-linux-amd64.tar.gz
asset_name: hcloud-linux-amd64.tar.gz
asset_content_type: application/gzip
- name: Upload Linux armv6
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-linux-armv6.tar.gz
asset_name: hcloud-linux-armv6.tar.gz
asset_content_type: application/gzip
- name: Upload Linux armv7
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-linux-armv7.tar.gz
asset_name: hcloud-linux-armv7.tar.gz
asset_content_type: application/gzip
- name: Upload Windows amd64
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-windows-amd64.zip
asset_name: hcloud-windows-amd64.zip
asset_content_type: application/zip
- name: Upload Windows 386
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-windows-386.zip
asset_name: hcloud-windows-386.zip
asset_content_type: application/zip
- name: Upload MacOS amd64
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/hcloud-macos-amd64.zip
asset_name: hcloud-macos-amd64.zip
asset_content_type: application/zip
8 changes: 6 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ before:
hooks:
- go mod tidy

checksum:
name_template: "checksums.txt"
algorithm: sha256

release:
draft: true
name_template: "hcloud v{{.Version}}"
disable: true

signs:
- ids:
Expand All @@ -48,10 +51,11 @@ signs:
- -log-json
- gon.hcl
artifacts: all
signature: "hcloud-macos-amd64.zip"
- artifacts: all
signature: "${artifact}.sig"
ids:
- hcloud-build
- hcloud-macos-build
args: ["--batch", "-u", "[email protected]", "--pinentry-mode", "loopback", "--output", "${signature}", "--detach-sign", "${artifact}"]

archives:
Expand Down

0 comments on commit 5fa7cdb

Please sign in to comment.