CI: Update workflow and readme badge

This commit is contained in:
Andrew Bird 2021-01-14 12:25:02 +00:00 committed by Kenneth J Davis
parent 7a2748585c
commit 35a18350a0
2 changed files with 12 additions and 3 deletions

View File

@ -1,11 +1,17 @@
name: Build / Test / Upload snapshot name: Build
on: on:
pull_request:
types:
- opened
- edited
- ready_for_review
- reopened
- synchronize
push: push:
branches: [ master ]
jobs: jobs:
build: build:
if: contains(github.event.head_commit.message, '[skip ci]') == false
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -34,6 +40,8 @@ jobs:
) )
- name: upload - name: upload
if: github.repository == 'FDOS/kernel' &&
(github.event_name == 'push' || github.event.pull_request.merged == true)
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ steps.snapshotname.outputs.fname }} name: ${{ steps.snapshotname.outputs.fname }}

View File

@ -13,6 +13,7 @@ This version of the kernel is intended only for 8086+ or 80386+ IBM compatible c
Please feel free to email me - PerditionC@gmail.com Please feel free to email me - PerditionC@gmail.com
2020 2020
[![Build](../../workflows/Build/badge.svg)](../../actions)
[![Build Status](https://travis-ci.com/FDOS/kernel.svg?branch=master)](https://travis-ci.com/FDOS/kernel) [![Build Status](https://travis-ci.com/FDOS/kernel.svg?branch=master)](https://travis-ci.com/FDOS/kernel)
Now with automatic builds and soon tests on [Travis CI](http://travis-ci.com) Now with automatic builds and soon tests on [Travis CI](http://travis-ci.com)