2021-08-20 13:15:20 -04:00
|
|
|
---
|
2022-11-03 06:30:36 -04:00
|
|
|
name: Release
|
2021-06-13 07:13:17 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2021-10-21 15:18:50 -04:00
|
|
|
- "*" # triggers only if push new tag version
|
2021-08-20 13:37:15 -04:00
|
|
|
workflow_dispatch:
|
2021-06-13 07:13:17 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
2022-12-05 03:10:51 -05:00
|
|
|
runs-on: ubuntu-latest
|
2021-06-13 07:13:17 -04:00
|
|
|
steps:
|
2021-10-21 15:18:50 -04:00
|
|
|
- name: Checkout
|
2022-11-04 05:40:39 -04:00
|
|
|
uses: actions/checkout@v3
|
2021-06-13 07:13:17 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-10-21 13:56:36 -04:00
|
|
|
|
2024-02-12 10:01:56 -05:00
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Login to GHCR
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2023-06-28 06:56:35 -04:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
2022-12-05 03:10:51 -05:00
|
|
|
|
|
|
|
- name: Run goreleaser
|
2024-02-12 09:09:19 -05:00
|
|
|
run: nix develop --command -- goreleaser release --clean
|
2021-06-13 07:13:17 -04:00
|
|
|
env:
|
2021-08-20 13:15:20 -04:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|