Skip to content

Commit 8b978c8

Browse files
authored
Add sample workflow file
1 parent ca46efd commit 8b978c8

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build and Package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
source_branch:
7+
description: 'The source branch or ref to build from'
8+
default: 'main'
9+
required: true
10+
release_name:
11+
description: 'The name for the release'
12+
required: true
13+
14+
jobs:
15+
release:
16+
environment: OSSign
17+
runs-on: windows-latest
18+
19+
permissions:
20+
contents: write
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
with:
26+
repository: 'xyz/xyz'
27+
ref: ${{ github.event.inputs.source_branch }}
28+
fetch-depth: 1
29+
30+
- name: Sign files
31+
uses: ossign/gha-sign-azuresigntool
32+
with:
33+
certificateName: ${{ secrets.AST_CERT }}
34+
clientId: ${{ secrets.AST_IDENT }}
35+
clientSecret: ${{ secrets.AST_SECRET }}
36+
hashAlgorithm: ${{ secrets.AST_TD }}
37+
tenantId: ${{ secrets.AST_TENANT }}
38+
timestampUrl: ${{ secrets.AST_TIMESTAMP }}
39+
vaultUrl: ${{ secrets.AST_VAULT }}
40+
files: dist/*
41+
extensions: msi;exe
42+
43+
- name: Release
44+
uses: softprops/action-gh-release@v2
45+
with:
46+
files: |
47+
dist/*.msi
48+
dist/*.exe
49+
name: ${{ github.event.inputs.release_name }}
50+
tag_name: ${{ github.run_id }}
51+
body: |
52+
# Signed Release ${{ github.event.inputs.release_name }}
53+
54+
These are the distributable files for the signed release of Beaver-Notes ${{ github.event.inputs.release_name }}
55+
56+
The source code was fetched from https://github.com/xyz/xyz@${{ github.event.inputs.source_branch }}
57+
58+

0 commit comments

Comments
 (0)