Skip to content

feature(main): add init commit #1

feature(main): add init commit

feature(main): add init commit #1

Workflow file for this run

name: Release
on:
push:
branches-ignore:
- '**'
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Install Dependencies
run: |
sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu \
libbtrfs-dev libgpgme-dev libdevmapper-dev \
qemu-user-static binfmt-support
- name: Get previous tag
id: previoustag
run: |
PREVIOUS_TAG=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
- name: Display previous tag
run: |
echo "Previous tag: ${{ steps.previoustag.outputs.PREVIOUS_TAG }}"
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: 1.20.x
- name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/}
echo tag_name=${TAG} >> $GITHUB_OUTPUT
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
args: release --timeout=1h --debug
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}