Skip to content

Commit

Permalink
Revert "try to force workflow to appear"
Browse files Browse the repository at this point in the history
This reverts commit e2a9c58.
  • Loading branch information
davidkarlsen committed Nov 9, 2020
1 parent e2a9c58 commit de59c39
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: release
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: shellcheck
uses: ludeeus/[email protected]

- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.14

- name: Install tools
run: |
./setup.sh
- name: Lint
run: |
go vet -v ./...
goimports -w -l .
go mod tidy
git diff --exit-code
- name: Login to registry
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.event.inputs.version }}

- name: Build
run: |
set -o nounset
set -o pipefail
echo "Building release ${{ github.event.inputs.version }}"
./build.sh --release
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

0 comments on commit de59c39

Please sign in to comment.