Skip to content

Commit

Permalink
Switch to main as default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
frzb committed Jan 28, 2021
1 parent f0cbc04 commit 2daf754
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_and_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
KERNEL: ${{ matrix.kernel }}
SUITE: ${{ matrix.suite }}
run: ./debirf/build_and_run_images
# if: github.ref == 'refs/heads/master'
# if: github.ref == 'refs/heads//aster'
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
path: debirf/build/coinboot*
# if: github.ref == 'refs/heads/master'
# if: github.ref == 'refs/heads/main'

create_pre-release:
needs: build_and_run
Expand Down Expand Up @@ -88,8 +88,8 @@ jobs:
uses: actions/download-artifact@v2
with:
path: debirf/build
- name: Create release from pre-release on master
if: github.ref == 'refs/heads/master'
- name: Create release from pre-release on main
if: github.ref == 'refs/heads/main'
env:
GITHUB_USER: "frzb"
GITHUB_REPO: "coinboot"
Expand All @@ -113,9 +113,9 @@ jobs:
git push origin :refs/tags/"${PRE_RELEASE_TAG}"
github-release -v release --tag $RELEASE_TAG --name $RELEASE_TAG
find ./debirf/build/artifact -name coinboot-* -type f -execdir sh -c "readlink -f {} && basename {}" \; | xargs -n 2 sh -c 'github-release -v upload --tag $RELEASE_TAG -n $2 -f $1 -l $2' sh
- name: Remove pre-release if not on master
# Only remove pre-release on master, else make a release.
if: github.ref != 'refs/heads/master'
- name: Remove pre-release if not on main
# Only remove pre-release on main, else make a release.
if: github.ref != 'refs/heads/main'
env:
GITHUB_USER: "frzb"
GITHUB_REPO: "coinboot"
Expand Down

0 comments on commit 2daf754

Please sign in to comment.