Skip to content

Change 'required_xcode_versions' to 'desired_xcode_versions' and make… #74

Change 'required_xcode_versions' to 'desired_xcode_versions' and make…

Change 'required_xcode_versions' to 'desired_xcode_versions' and make… #74

name: "Create Github Release"
# NOTE: This workflow only works well when triggered by a tag push due to
# unexpected behavior in action-automatic-releases when manually setting an
# automatic_release_tag.
# To manually trigger this, you can force push a version tag starting with `v`.
on:
push:
tags:
- "v*"
jobs:
create-release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'release skip')"
steps:
- uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.BUILDBUDDY_GITHUB_USER_TOKEN }}"
prerelease: false
draft: true
build-linux-amd64-artifacts:
uses: ./.github/workflows/build-linux-amd64-github-release-artifacts.yaml
if: "!contains(github.event.head_commit.message, 'release skip')"
needs: create-release
with:
release_branch: ${{ github.ref }}
version_tag: ${{ github.ref_name }}
secrets: inherit
build-linux-arm64-artifacts:
uses: ./.github/workflows/build-linux-arm64-github-release-artifacts.yaml
if: "!contains(github.event.head_commit.message, 'release skip')"
needs: create-release
with:
release_branch: ${{ github.ref }}
version_tag: ${{ github.ref_name }}
secrets: inherit
build-mac-intel-artifacts:
uses: ./.github/workflows/build-mac-intel-github-release-artifacts.yaml
if: "!contains(github.event.head_commit.message, 'release skip')"
needs: create-release
with:
release_branch: ${{ github.ref }}
version_tag: ${{ github.ref_name }}
secrets: inherit
build-mac-m1-artifacts:
uses: ./.github/workflows/build-mac-m1-github-release-artifacts.yaml
if: "!contains(github.event.head_commit.message, 'release skip')"
needs: create-release
with:
release_branch: ${{ github.ref }}
version_tag: ${{ github.ref_name }}
secrets: inherit
build-windows-artifacts:
uses: ./.github/workflows/build-windows-github-release-artifacts.yaml
if: "!contains(github.event.head_commit.message, 'release skip')"
needs: create-release
with:
release_branch: ${{ github.ref }}
version_tag: ${{ github.ref_name }}
secrets: inherit
slack_on_failure:
runs-on: ubuntu-latest
needs:
[
create-release,
build-linux-arm64-artifacts,
build-linux-amd64-artifacts,
build-mac-intel-artifacts,
build-mac-m1-artifacts,
]
if: ${{ always() && contains(needs.*.result, 'failure') }}
steps:
- name: Slack
uses: 8398a7/action-slack@v3
with:
status: custom
custom_payload: |
{
attachments: [{
color: '#ad1411',
blocks: [
{
type: 'section',
text: {
type: 'mrkdwn',
text: '*Creating Github Release Failed*'
}
},
{
type: 'section',
text: {
type: 'mrkdwn',
text: `https://github.com/buildbuddy-io/buildbuddy/actions/runs/${{ github.run_id }}`
}
}
]
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_AUTO_RELEASE_WEBHOOK_URL }}