Skip to content

Commit 74f7ed6

Browse files
committed
update github actions
1 parent cbd6ac3 commit 74f7ed6

8 files changed

Lines changed: 50 additions & 40 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build
2+
on:
3+
pull_request:
4+
push:
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
packages: read
12+
env:
13+
PKGFORGE_STATEFILE: /tmp/pkgforge
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
submodules: recursive
19+
- name: Build
20+
run: make
21+
- name: Release
22+
if: startsWith(github.ref, 'refs/tags/')
23+
run: make release
24+
env:
25+
GITHUB_TOKEN: ${{ github.token }}
26+
- name: Post to a Slack channel
27+
if: ${{ failure() }}
28+
uses: slackapi/slack-github-action@v1.18.0
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
31+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
32+
with:
33+
payload: |
34+
{
35+
"text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
36+
"blocks": [
37+
{
38+
"type": "section",
39+
"text": {
40+
"type": "mrkdwn",
41+
"text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
42+
}
43+
}
44+
]
45+
}
46+

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/bin
33
/vendor/
44
/pkg/
5-
/.github
65
/payload.zip
76
/.tools/
87
/Dockerfile

.prospectus

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 Les Aker
3+
Copyright (c) 2022 Les Aker
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile.local

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
PACKAGE = github-auth-lambda
2-
NAMESPACE = github.com/akerl
3-
OSLIST = linux
2+
OSARCHLIST = linux/amd64

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github-auth-lambda
22
=========
33

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

0 commit comments

Comments
 (0)