Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Commit

Permalink
Add release capability (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Mar 5, 2021
1 parent e94db1c commit 1d03386
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build-and-sign

on:
release:

jobs:
release:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
- name: Install osslsigncode
run: |
echo "$PWD/.local/bin" >> $GITHUB_PATH
echo $GITHUB_PATH
set -eu
mkdir -p .local/bin && cd .local/bin
curl -sSL https://github.com/mtrojnar/osslsigncode/releases/download/2.1/osslsigncode_2.1_windows.zip -o osslsigncode.zip
ls -l osslsigncode.zip
unzip -j osslsigncode.zip
./osslsigncode --version || true
- name: Build
run: make windows_amd64_signed

- name: Test
run: make test

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: .gotmp/bin/windows_amd64/sudo*.exe
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 1d03386

Please sign in to comment.