Skip to content

Commit d745cbb

Browse files
cody-constine-ttdRelease Workflow
andauthored
Cbc UI d2 2326 create swift release (#19)
* Changed to my shared version * Fixed bad indents * Removed vulnerability_scan because it doesn't work on iOS * [CI Pipeline] Released Minor version: 5.7.0-cbc-UID2-2326-create-swift-release * [CI Pipeline] Released Minor version: 5.8.0-cbc-UID2-2326-create-swift-release * Clean up and set version after shared merged * Fixed stash conflict * Added .swp to the .gitignore --------- Co-authored-by: Release Workflow <[email protected]>
1 parent e92eeb4 commit d745cbb

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build and Publish
2+
run-name: ${{ format('Release {0}', inputs.release_type)}} Package by @${{ github.actor }}
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
type: choice
8+
description: The type of release
9+
options:
10+
- Patch
11+
- Minor
12+
- Major
13+
jobs:
14+
build-and-publish:
15+
name: Build and publish iOS release
16+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-ios-version.yaml@v2
17+
with:
18+
release_type: ${{ inputs.release_type }}
19+
secrets: inherit

.github/workflows/test-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: macos-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- name: Lint code
2020
run: swiftlint lint --config .swiftlint.yml --reporter github-actions-logging
@@ -23,4 +23,4 @@ jobs:
2323
run: xcodebuild -scheme UID2 -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
2424

2525
- name: Run unit tests
26-
run: xcodebuild test -scheme UID2Tests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
26+
run: xcodebuild test -scheme UID2Tests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ DerivedData/
77
.swiftpm/config/registries.json
88
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
99
.netrc
10+
*.swp

version.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "0.3",
4+
"publicReleaseRefSpec": [
5+
"^refs/heads/main$"
6+
],
7+
"cloudBuild": {
8+
"setVersionVariables": true,
9+
"buildNumber": {
10+
"enabled": true,
11+
"includeCommitId": {
12+
"when": "always",
13+
"where": "buildMetadata"
14+
}
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)