Repository navigation
56 lines (52 loc) · 1.53 KB
/
Copy pathrelease.yml
File metadata and controls
56 lines (52 loc) · 1.53 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release
on:
push:
tags: ['v*']
permissions:
contents: read
actions: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
evidence:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Require exact-tree branch core evidence
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: ./tools/ci-evidence.ps1 -Mode Release
build:
needs: evidence
uses: ./.github/workflows/build-windows.yml
with:
run_core: false
expected_tag: ${{ github.ref_name }}
publish:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ needs.build.outputs.artifact_name }}
path: dist
- name: Prepare verified draft assets for final acceptance
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ github.ref_name }}
RELEASE_ARCHIVE: ${{ needs.build.outputs.archive_name }}
run: |
./tools/publish-release.ps1 -Tag $env:RELEASE_TAG -ArchivePath (Join-Path dist $env:RELEASE_ARCHIVE) -DraftOnly