CI: Add fixes for tagged release runs and assorted minor issues

* Add provisioning profile support for macOS builds
* Fix internal variable names in macOS packaging script
* Add fallback git reference for validator actions
* Add required repository environment to documention deployment jobs
* Pass GitHub pull request number to GitHub CLI explicitly
* Use shortened commit hash for Steam nightly versions
* Ensure that concurrency check for tagged push uses a boolean value
* Update disk image creation function to retry ejection on CI
* Fix repository checkout in Flatpak publish action
* Fix output paths and filenames of generated appcast XML files
* Limit notice about notarization password use to non-CI usage
* Remove architecture-specific suffix from appcast artifact name
This commit is contained in:
Patrick Heyer
2023-07-27 15:26:45 +02:00
committed by GitHub
parent 6034aa4164
commit a2c0d4969a
15 changed files with 65 additions and 15 deletions
+2 -1
View File
@@ -29,7 +29,7 @@ jobs:
case "${GITHUB_EVENT_NAME}" in
pull_request)
config_data=('codesign:false' 'notarize:false' 'package:false' 'config:RelWithDebInfo')
if gh pr view --json labels \
if gh pr view ${{ github.event.number }} --json labels \
| jq -e -r '.labels[] | select(.name == "Seeking Testers")' > /dev/null; then
config_data[0]='codesign:true'
config_data[2]='package:true'
@@ -139,6 +139,7 @@ jobs:
codesign: ${{ fromJSON(needs.check-event.outputs.codesign) }}
codesignIdent: ${{ steps.codesign.outputs.codesignIdent }}
codesignTeam: ${{ steps.codesign.outputs.codesignTeam }}
provisioningProfileUUID: ${{ steps.codesign.outputs.provisioningProfileUUID }}
- name: Package OBS Studio 📀
uses: ./.github/actions/package-obs
+2
View File
@@ -117,6 +117,8 @@ jobs:
defaults:
run:
shell: bash
environment:
name: cf-pages-deploy
steps:
- name: Get Commit Information 🆔
id: setup
+2 -2
View File
@@ -61,7 +61,7 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
set-safe-directory: ${{ github.workspace }}
set-safe-directory: ${{ env.GITHUB_WORKSPACE }}
- name: Set Up Environment 🔧
id: setup
@@ -88,7 +88,7 @@ jobs:
fi
echo "cacheKey=${cache_key}" >> $GITHUB_OUTPUT
echo "commitHash=$(git rev-parse --short=9 HEAD)" >> $GITHUB_OUTPUT
echo "commitHash=${GITHUB_SHA:0:9}" >> $GITHUB_OUTPUT
- name: Build Flatpak Manifest
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
+4 -2
View File
@@ -13,7 +13,7 @@ permissions:
contents: write
concurrency:
group: '${{ github.workflow }} @ ${{ github.ref }}'
cancel-in-progress: ${{ github.ref_type == 'tag' }}
cancel-in-progress: ${{ fromJSON(github.ref_type == 'tag') }}
jobs:
check-format:
name: Check Formatting 🔍
@@ -133,6 +133,8 @@ jobs:
defaults:
run:
shell: bash
environment:
name: cf-pages-deploy
steps:
- name: Get Commit Information 🆔
id: setup
@@ -216,7 +218,7 @@ jobs:
- name: Upload Artifacts 📡
uses: actions/upload-artifact@v3
with:
name: macos-sparkle-update-${{ matrix.target }}
name: macos-sparkle-update
path: ${{ github.workspace }}/output
create-release: