Skip to content

Merge pull request #25 from daemonl/nop-error-on-archived #20

Merge pull request #25 from daemonl/nop-error-on-archived

Merge pull request #25 from daemonl/nop-error-on-archived #20

Workflow file for this run

name: Build
on: [push]
jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Test
run: go test ./...
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [linting, test]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONCORD_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
CONCORD_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Snapshot
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --snapshot
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean