-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0beba20
commit b32e891
Showing
8 changed files
with
108 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: [ "*" ] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
strategy: | ||
matrix: | ||
version: [1.18.x] | ||
target: | ||
- { os: 'darwin', platform: 'macos-latest', arch: 'amd64' } | ||
- { os: 'linux', platform: 'ubuntu-latest', arch: 'amd64' } | ||
- { os: 'windows', platform: 'windows-latest', arch: 'amd64' } | ||
runs-on: ${{ matrix.target.platform }} | ||
steps: | ||
- name: Set up toolchain | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.version }} | ||
id: go | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Build binary | ||
run: go build -o certsrap . | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: certstrap-${{ matrix.target.os }}-${{ matrix.target.arch }} | ||
path: certstrap | ||
|
||
release: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
needs: [ build ] | ||
outputs: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: "Release Build (Draft)" | ||
body: "Release Build (from ${{ github.ref }}/${{ github.sha }})" | ||
draft: true | ||
prerelease: true | ||
|
||
add-assets: | ||
name: Add assets | ||
runs-on: ubuntu-latest | ||
needs: [ build, release ] | ||
strategy: | ||
matrix: | ||
target: | ||
- { os: 'darwin', arch: 'amd64' } | ||
- { os: 'linux', arch: 'amd64' } | ||
- { os: 'windows', arch: 'amd64' } | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: certstrap-${{ matrix.target.os }}-${{ matrix.target.arch }} | ||
path: dist | ||
- name: Upload artifact to release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.release.outputs.upload_url }} | ||
asset_path: ./dist/certstrap | ||
asset_name: certstrap-${{ matrix.target.os }}-${{ matrix.target.arch }} | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
module github.com/square/certstrap | ||
|
||
go 1.18 | ||
|
||
require ( | ||
github.com/howeyc/gopass v0.0.0-20170109162249-bf9dde6d0d2c | ||
github.com/urfave/cli v1.22.9 | ||
go.step.sm/crypto v0.16.2 | ||
) | ||
|
||
go 1.16 | ||
require ( | ||
filippo.io/edwards25519 v1.0.0-rc.1 // indirect | ||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/russross/blackfriday/v2 v2.0.1 // indirect | ||
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect | ||
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect | ||
golang.org/x/sys v0.0.0-20210915083310-ed5796bab164 // indirect | ||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters