Skip to content

release

release #49

Workflow file for this run

name: release
on:
workflow_dispatch:
release:
types: [created]
jobs:
build:
name: build_to_release
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Fetch tags
run: |
git fetch --prune --unshallow --tags
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Branch name
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Make plik release
run: make release-and-push-to-docker-hub
- name: Upload artifacts to release
uses: softprops/action-gh-release@v1
with:
files: releases/*