chore: fix the ci code #27
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: build | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Task | |
run: | | |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.22.5' | |
- name: Install Autogit | |
run: | | |
curl -L $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/darklab8/autogit/releases/latest | sed "s/releases\/tag/releases\/download/")/autogit-linux-amd64 -o /usr/local/bin/autogit && chmod 777 /usr/local/bin/autogit | |
- name: Checkout git repo with tags and commits for autogit | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: build | |
run: task build | |
- name: Use the Upload Artifact GitHub Action | |
uses: actions/upload-artifact@v3 | |
with: | |
name: assets-for-download | |
path: dist |