chore(deps): trigger a release based with changie updates (#58) #41
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 | |
on: | |
push: | |
branches: [main] | |
paths: [CHANGELOG.md] # your changelog file if different | |
workflow_dispatch: | |
workflow_call: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: aquaproj/aqua-installer@928a2ee4243a9ee8312d80dc8cbaca88fb602a91 # v2.2.0 | |
with: | |
aqua_version: v2.21.3 | |
enable_aqua_install: true | |
# aqua_opts: "" | |
env: | |
# AQUA_CONFIG: '${{ github.workspace }}/aqua.yaml' | |
AQUA_LOG_LEVEL: debug | |
AQUA_OPTS: '' | |
# Configure path for Go binaries to be found | |
- name: env-config-go | |
run: | | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: Setup Golang caches | |
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4 | |
with: | |
path: | | |
${HOME}/.cache/go-build | |
${HOME}/go/pkg/mod | |
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-golang- | |
- name: mage-init | |
run: | | |
# echo "${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:${PATH}" | |
mage init | |
- name: docker-login | |
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3 | |
with: | |
username: ${{ secrets.DSV_DOCKER_USERNAME }} | |
password: ${{ secrets.DSV_DOCKER_PASSWORD }} | |
- name: mage-release | |
run: | | |
# echo "${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:${PATH}" | |
mage release | |
env: | |
# GitHub sets this automatically | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SLACK_CHANNEL: ${{ secrets.DSV_SLACK_CHANNEL }} | |
SLACK_WEBHOOK: ${{ secrets.DSV_SLACK_WEBHOOK }} | |
DOCKER_ORG: ${{ secrets.DSV_DOCKER_REGISTRY }} |