mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
refactor: simplify release workflow and remove unnecessary Taskfile includes
This commit is contained in:
parent
8764e93437
commit
ac8250557d
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
run: task -t .github/Taskfile.yml release
|
run: task release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
||||||
GITHUB_PERSONAL_AUTH_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
GITHUB_PERSONAL_AUTH_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
||||||
|
81
Taskfile.yml
81
Taskfile.yml
@ -9,21 +9,19 @@ vars:
|
|||||||
sh: git rev-parse --show-toplevel
|
sh: git rev-parse --show-toplevel
|
||||||
OS:
|
OS:
|
||||||
sh: uname -s
|
sh: uname -s
|
||||||
TASKS:
|
# DOPPLER_TOKEN:
|
||||||
sh: task -l
|
# sh: skate get DOPPLER_NETWORK
|
||||||
DOPPLER_TOKEN:
|
|
||||||
sh: skate get DOPPLER_NETWORK
|
|
||||||
|
|
||||||
includes:
|
|
||||||
deps: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/deps.yml
|
|
||||||
gen: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/gen.yml
|
|
||||||
hway: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/hway.yml
|
|
||||||
ipfs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ipfs.yml
|
|
||||||
issue: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ghpm.yml
|
|
||||||
procs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/procs.yml
|
|
||||||
postgres: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/postgres.yml
|
|
||||||
sonrd: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/sonrd.yml
|
|
||||||
|
|
||||||
|
# includes:
|
||||||
|
# deps: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/deps.yml
|
||||||
|
# gen: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/gen.yml
|
||||||
|
# hway: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/hway.yml
|
||||||
|
# ipfs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ipfs.yml
|
||||||
|
# issue: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ghpm.yml
|
||||||
|
# procs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/procs.yml
|
||||||
|
# postgres: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/postgres.yml
|
||||||
|
# sonrd: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/sonrd.yml
|
||||||
|
#
|
||||||
tasks:
|
tasks:
|
||||||
default:
|
default:
|
||||||
cmds:
|
cmds:
|
||||||
@ -32,25 +30,44 @@ tasks:
|
|||||||
- task -l -j | jq -r '.tasks[].name' | fzf --height=16 | xargs task
|
- task -l -j | jq -r '.tasks[].name' | fzf --height=16 | xargs task
|
||||||
silent: true
|
silent: true
|
||||||
|
|
||||||
start:
|
# start:
|
||||||
desc: Start the Network
|
# desc: Start the Network
|
||||||
silent: true
|
# silent: true
|
||||||
|
# cmds:
|
||||||
|
# - task: postgres:reset
|
||||||
|
# - task: ipfs:init
|
||||||
|
# - task: ipfs:mount
|
||||||
|
# - task: sonrd:install
|
||||||
|
# - task: hway:build
|
||||||
|
# - task: procs:up
|
||||||
|
#
|
||||||
|
# status:
|
||||||
|
# desc: Check the status of the Network
|
||||||
|
# silent: true
|
||||||
|
# cmds:
|
||||||
|
# - task: procs:attach
|
||||||
|
#
|
||||||
|
# stop:
|
||||||
|
# desc: Stop the Network
|
||||||
|
# silent: true
|
||||||
|
# cmds:
|
||||||
|
# - task: procs:down
|
||||||
|
date:
|
||||||
|
desc: Returns date in YEAR.WEEK.DAY format
|
||||||
cmds:
|
cmds:
|
||||||
- task: postgres:reset
|
- |
|
||||||
- task: ipfs:init
|
YEAR=$(date +%Y)
|
||||||
- task: ipfs:mount
|
WEEK=$(date +%V)
|
||||||
- task: sonrd:install
|
DAY=$(date +%u)
|
||||||
- task: hway:build
|
echo "${YEAR}.${WEEK}.${DAY}"
|
||||||
- task: procs:up
|
vars:
|
||||||
|
DATE: '{{default "" .CLI_ARGS}}'
|
||||||
|
silent: true
|
||||||
|
|
||||||
status:
|
release:
|
||||||
desc: Check the status of the Network
|
desc: Create a new release with formatted date
|
||||||
silent: true
|
|
||||||
cmds:
|
cmds:
|
||||||
- task: procs:attach
|
- go install github.com/goreleaser/goreleaser/v2@latest
|
||||||
|
- RELEASE_DATE=$(task date) goreleaser release --clean
|
||||||
|
silent: true
|
||||||
|
|
||||||
stop:
|
|
||||||
desc: Stop the Network
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- task: procs:down
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user