Skip to content

Commit 3256feb

Browse files
committedMay 5, 2020
add github actions
1 parent 134403e commit 3256feb

File tree

4 files changed

+109
-0
lines changed

4 files changed

+109
-0
lines changed
 

‎.github/workflows/build.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- '*'
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build:
14+
name: Go ${{ matrix.go }} build
15+
runs-on: ubuntu-18.04
16+
strategy:
17+
matrix:
18+
go: [ '1.14' ]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Setup go
22+
uses: actions/setup-go@v1
23+
with:
24+
go-version: ${{ matrix.go }}
25+
- name: Test build
26+
run: make
27+
28+
release:
29+
name: Release
30+
if: startsWith(github.ref, 'refs/tags/')
31+
runs-on: ubuntu-18.04
32+
needs: build
33+
steps:
34+
35+
- name: Check out code into the Go module directory
36+
uses: actions/checkout@v2
37+
38+
# required for the changelog to work correctly
39+
- name: Unshallow
40+
run: git fetch --prune --unshallow
41+
42+
- name: Set up Go
43+
uses: actions/setup-go@v1
44+
with:
45+
go-version: 1.14
46+
id: go
47+
48+
- name: Run goreleaser
49+
uses: goreleaser/goreleaser-action@v1
50+
with:
51+
version: v0.131.1
52+
args: release --rm-dist
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.goreleaser.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod download
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
archives:
11+
- replacements:
12+
darwin: Darwin
13+
linux: Linux
14+
windows: Windows
15+
amd64: x86_64
16+
checksum:
17+
name_template: 'checksums.txt'
18+
snapshot:
19+
name_template: "{{ .Tag }}-next"
20+
changelog:
21+
sort: asc
22+
filters:
23+
exclude:
24+
- '^docs:'
25+
- '^doc:'
26+
- '^test:'
27+
- '^build:'
28+
- '^chore:'

‎LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020- Qingping Hou
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Terraform Provider Airflow
2+
==========================
3+
4+
![build](https://github.com/houqp/terraform-provider-airflow/workflows/build/badge.svg)
5+
6+
Terraform provider for managing Airflow resources.

0 commit comments

Comments
 (0)
Please sign in to comment.