-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 2.32 KB
/
Copy pathrelease.yml
File metadata and controls
59 lines (57 loc) · 2.32 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
57
58
59
name: build-and-release
on:
push:
tags: ['plugin-*-v*']
workflow_dispatch:
inputs:
prospective-tag: { type: string, required: true }
selected-ids: { type: string, required: true }
expected-source-sha: { type: string, required: true }
release-kind: { type: choice, options: [draft, prerelease, live], default: draft }
publish: { type: boolean, default: false }
prepared-receipt: { type: string, default: '' }
concurrency:
group: unit-release-${{ github.repository }}
cancel-in-progress: false
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check selected release tag
env:
RELEASE_TAG: ${{ inputs.prospective-tag || github.ref_name }}
run: sh scripts/tag_version_guard.sh "$RELEASE_TAG"
- id: release
uses: Bespok3d/b3-builder@5ac544b30634961cbad39659ebbb99172de68c64
with:
managed-release: 'true'
release-tag: ${{ inputs.prospective-tag }}
selected-ids: ${{ inputs.selected-ids }}
expected-source-sha: ${{ inputs.expected-source-sha }}
release-kind: ${{ inputs.release-kind }}
publish: ${{ github.event_name == 'push' || inputs.publish }}
prepared-receipt: ${{ inputs.prepared-receipt }}
require-signature: 'true'
register-commit: df4eec856264bebffaa37d93ab1c51363fd6ef92
unit: repo
signing-key: ${{ secrets.REGISTRY_SIGNING_KEY }}
bake: 'true'
atom-repo: ${{ github.repository }}
list-name: 'Bespok3d Networking'
list-publisher: '679939555819fb5f6423dc68c4388e76bfa9b4e0'
list-ref-name: 'Networking'
main-index-repo: Bespok3d/main-index
main-index-token: ${{ secrets.MAIN_INDEX_TOKEN }}
- uses: Bespok3d/main-index/.github/actions/register-atoms@df4eec856264bebffaa37d93ab1c51363fd6ef92
if: ${{ steps.release.outputs.publish == 'true' && steps.release.outputs.release-kind != 'live' }}
with:
atoms-dir: dist/registration
selected-ids: ${{ steps.release.outputs.selected-ids }}
release-kind: ${{ steps.release.outputs.release-kind }}
token: ${{ secrets.MAIN_INDEX_TOKEN }}