-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (67 loc) · 2.31 KB
/
Copy pathrelease-sqlite3.yml
File metadata and controls
79 lines (67 loc) · 2.31 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# SPDX-FileCopyrightText: 2026 Amalgam Solucoes em TI Ltda.
# SPDX-License-Identifier: MIT
name: Release SQLite3 static libraries
on:
workflow_dispatch:
inputs:
dry_run:
description: Validate assets without changing pins, tags, or releases
required: true
default: true
type: boolean
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
name: Build release assets
uses: ./.github/workflows/build-sqlite3.yml
release:
name: Publish release
needs: build
runs-on: ubuntu-24.04
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout source code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Read SQLite release metadata
uses: ./.github/actions/prepare-release-metadata
with:
dependency: sqlite3
version-env: SQLITE_VERSION
version-command: "awk '/^[[:space:]]*VERSION[[:space:]]+[0-9]/{print $2; exit}' sqlite3/CMakeLists.txt"
- name: Download build artifacts
uses: actions/download-artifact@v7
with:
path: release-assets
merge-multiple: true
- name: Pin bundle release
if: ${{ !inputs.dry_run }}
id: pin_bundle_release
uses: ./.github/actions/pin-deps-release
with:
dependency: sqlite3
tag: ${{ env.TAG_NAME }}
- name: Create release tag
if: ${{ !inputs.dry_run }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a "${TAG_NAME}" -m "SQLite ${SQLITE_VERSION}"
git push origin "refs/tags/${TAG_NAME}"
- name: Publish GitHub Release
if: ${{ !inputs.dry_run }}
run: |
gh release create "${TAG_NAME}" release-assets/* \
--verify-tag \
--title "SQLite ${SQLITE_VERSION} static libraries" \
--notes "Static SQLite ${SQLITE_VERSION} libraries for TotalCross."
- name: Revert bundle release pin after failure
if: ${{ failure() && steps.pin_bundle_release.outputs.commit != '' }}
uses: ./.github/actions/revert-deps-release-pin
with:
commit: ${{ steps.pin_bundle_release.outputs.commit }}