-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 850 Bytes
/
release.yml
File metadata and controls
36 lines (30 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Manual Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Create Zip Archive
shell: pwsh
run: |
$files = Get-ChildItem -Path . -Recurse -File |
Where-Object {
$_.FullName -notmatch '\\.git\\' -and
$_.FullName -notmatch '\\.github\\' -and
$_.Name -ne 'CODE_OF_CONDUCT.md' -and
$_.Name -ne 'SECURITY.md'
}
Compress-Archive -Path $files -DestinationPath c-env-bootstrap.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
files: c-env-bootstrap.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}