updating branch terminology in ci (#110)

Co-authored-by: John Kennedy <jkennedy@verizonmedia.com>
main
jkennedyvz 2022-02-24 14:38:16 -08:00 committed by GitHub
parent ede39372f4
commit c06edcf9b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -2,11 +2,11 @@ name: ci
on:
push:
branches: [ master, release-* ]
branches: [ main, release-* ]
tags:
'v*'
pull_request:
branches: [ master ]
branches: [ main ]
jobs:
# This is a super hacky way to get this into a place that can actually be
@ -56,7 +56,7 @@ jobs:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Build Pr (Linux)
if: matrix.os == 'ubuntu-16.04' && !contains(github.ref, 'tags/v') && !contains(github.ref, 'refs/heads/master') && !contains(github.ref, 'refs/heads/release-')
if: matrix.os == 'ubuntu-16.04' && !contains(github.ref, 'tags/v') && !contains(github.ref, 'refs/heads/main') && !contains(github.ref, 'refs/heads/release-')
run: |
echo "Building!"
sudo apt install libxcb-keysyms1-dev desktop-file-utils libxcb-icccm4 libxcb-image0 libxcb-util1 \
@ -81,7 +81,7 @@ jobs:
if: |
matrix.os == 'macos-latest' &&
contains(github.ref, 'tags/v') != true &&
contains(github.ref, 'refs/heads/master') != true &&
contains(github.ref, 'refs/heads/main') != true &&
contains(github.ref, 'refs/heads/release') != true
run: |
brew install qt@5
@ -98,7 +98,7 @@ jobs:
- name: Import Code-Signing Certificates
if: |
matrix.os == 'macos-latest' &&
(contains(github.ref, 'tags/v') || github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release'))
(contains(github.ref, 'tags/v') || github.ref == 'refs/heads/main' || contains(github.ref, 'refs/heads/release'))
uses: Apple-Actions/import-codesign-certs@v1.0.4
with:
p12-file-base64: ${{ secrets.MACOS_CERT }}
@ -107,7 +107,7 @@ jobs:
- name: Build and Sign Release (mac)
if: |
matrix.os == 'macos-latest' &&
(contains(github.ref, 'tags/v') || github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release'))
(contains(github.ref, 'tags/v') || github.ref == 'refs/heads/main' || contains(github.ref, 'refs/heads/release'))
run: |
brew install qt@5
export PATH="/usr/local/opt/qt@5/bin:$PATH"
@ -123,7 +123,7 @@ jobs:
- name: Install gon via HomeBrew and Notarize (mac)
if: |
matrix.os == 'macos-latest' &&
(contains(github.ref, 'tags/v') || github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release'))
(contains(github.ref, 'tags/v') || github.ref == 'refs/heads/main' || contains(github.ref, 'refs/heads/release'))
env:
GON_CONF: ${{ secrets.GON_CONF }}
run: |