-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (33 loc) · 1.1 KB
/
deploy.yml
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
37
38
name: "Deploy"
on:
push:
tags:
- "*.*.*"
jobs:
prerelease:
name: "Prerelease"
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/[email protected]
- name: "Run gh(auth)"
run: |
gh auth setup-git
gh auth status
- name: "Run make-configuration.ps1"
run: |
$text = scripts/make-configuration.ps1 -Dump
Write-Output "## Configuration" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Write-Output '```json' | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Write-Output $text | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Write-Output '```' | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
shell: pwsh
- name: "Run gh(release)"
run: |
gh release create ${{ github.ref_name }} \
-t ${{ github.ref_name }} \
--discussion-category "General" \
--generate-notes --prerelease
gh release upload ${{ github.ref_name }} \
vcpkg-configuration.json