Add changes #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release binaries | |
# This workflow is triggered on pushes to the repository. | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
# docker: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Set up QEMU | |
# uses: docker/setup-qemu-action@v2 | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v1 | |
# - name: Login to DockerHub | |
# uses: docker/login-action@v1 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# - name: Check out the repo | |
# uses: actions/checkout@v2 | |
# - name: Set output | |
# id: vars | |
# run: echo ::set-output name=tag::${GITHUB_REF##*/} | |
# - name: Print env | |
# run: echo $ABTASTY_CLI_VERSION | |
# - name: Build and push | |
# id: docker_build | |
# uses: docker/build-push-action@v4 | |
# with: | |
# context: ./ | |
# build-args: | | |
# ABTASTY_CLI_VERSION=${{ github.ref_name }} | |
# push: true | |
# tags: flagshipio/cli:${{ steps.vars.outputs.tag }} | |
# - name: Image digest | |
# run: echo ${{ steps.docker_build.outputs.digest }} | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} | |
ABTASTY_CLI_VERSION: ${{ github.ref_name }} |