2020-01-12 16:16:04 +01:00
|
|
|
name: Build
|
2019-09-26 12:45:48 +02:00
|
|
|
# This workflow is triggered on pushes to the repository.
|
2019-10-16 04:04:01 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
2020-01-12 16:16:04 +01:00
|
|
|
- 'README.md'
|
|
|
|
- '.gitignore'
|
2019-10-16 04:04:01 +02:00
|
|
|
pull_request:
|
2019-09-26 12:45:48 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build and test yay
|
|
|
|
# This job runs on Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1#
|
|
|
|
- name: Run Build and tests
|
2019-10-16 03:44:10 +02:00
|
|
|
run: ./testdata/ci/full.sh
|
2019-09-29 13:01:17 +02:00
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: yay_release
|
|
|
|
path: artifacts
|
2020-01-12 16:16:04 +01:00
|
|
|
tag:
|
|
|
|
name: Tag release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Bump version and push tag
|
|
|
|
uses: mathieudutour/github-tag-action@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
if: github.ref == 'master' && github.event_name == 'push'
|