Skip to content

Commit

Permalink
set up actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Jan 23, 2021
1 parent 857babc commit 9ab99dc
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build
on: [pull_request, push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: akerl/[email protected]
with:
submodules: recursive
- name: Registry auth
run: docker login docker.pkg.github.com -u nobody -p ${{ github.token }}
- name: Make
env:
PKGFORGE_STATEFILE: /tmp/pkgforge
run: make
- name: Release
env:
PKGFORGE_STATEFILE: /tmp/pkgforge
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: startsWith(github.ref, 'refs/tags/')
run: make release
- name: Store
uses: akerl/[email protected]
with:
name: pkg
path: pkg
- name: Notify on success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: akerl/[email protected]
with:
channel_id: ${{ secrets.SLACK_BOT_CHANNEL }}
status: success
color: good
- name: Notify on failure
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: akerl/[email protected]
with:
channel_id: ${{ secrets.SLACK_BOT_CHANNEL }}
status: failed
color: danger

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/bin
/vendor/
/pkg/
/.github
/payload.zip
/.tools/
/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prospectus
=========

[![Build Status](https://img.shields.io/travis/com/akerl/prospectus.svg)](https://travis-ci.com/akerl/prospectus)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/akerl/prospectus/Build)](https://github.com/akerl/prospectus/actions))
[![GitHub release](https://img.shields.io/github/release/akerl/prospectus.svg)](https://github.com/akerl/prospectus/releases)
[![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)

Expand Down

0 comments on commit 9ab99dc

Please sign in to comment.