Skip to content

fix(deps): update module github.com/spf13/viper to v1.18.2 (#66) #29

fix(deps): update module github.com/spf13/viper to v1.18.2 (#66)

fix(deps): update module github.com/spf13/viper to v1.18.2 (#66) #29

Workflow file for this run

name: CD
on:
push:
branches: [main]
paths-ignore:
- .github/**
- .cz.toml
- .gitignore
- .goreleaser.yml
- .pre-commit-config.yaml
- .yamllint.yml
- CHANGELOG.md
workflow_dispatch:
env:
# renovate: datasource=pypi depName=commitizen
COMMITIZEN_VERSION: 3.13.0
# renovate: datasource=github-releases depName=jgm/pandoc
PANDOC_VERSION: 3.1.11
jobs:
release:
name: Release
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Check if version bumped
id: latest-tag
run: echo "tag=$(git describe --abbrev=0)" >> "$GITHUB_OUTPUT"
- name: Dry run
uses: commitizen-tools/commitizen-action@bc2616fec6b3effc9ad20380f19550a8b18cdbdf # 0.20.0
with:
github_token: ${{ github.token }}
changelog_increment_filename: _changelog.md
commitizen_version: ${{ env.COMMITIZEN_VERSION }}
dry_run: true
- name: Bump
uses: commitizen-tools/commitizen-action@bc2616fec6b3effc9ad20380f19550a8b18cdbdf # 0.20.0
with:
github_token: ${{ github.token }}
changelog_increment_filename: _changelog.md
commitizen_version: ${{ env.COMMITIZEN_VERSION }}
- name: Check if version bumped
id: check-tag
run: |
[ "${{ steps.latest-tag.outputs.tag }}" != "${{ env.REVISION }}" ] && bump=true
echo "bump=$bump" >> "$GITHUB_OUTPUT"
- name: Setup Go
if: steps.check-tag.outputs.bump == 'true'
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
cache: true
check-latest: true
go-version-file: go.mod
- name: Run GoReleaser
if: steps.check-tag.outputs.bump == 'true'
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
args: release --clean --release-notes _changelog.md
env:
AUR_KEY: ${{ secrets.AUR_KEY }}
GITHUB_TOKEN: ${{ github.token }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
page:
name: Page
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
cache: true
check-latest: true
go-version-file: go.mod
- name: Install pandoc
run: ansible -b -m apt -a deb=https://github.com/jgm/pandoc/releases/download/${{ env.PANDOC_VERSION }}/pandoc-${{ env.PANDOC_VERSION }}-1-amd64.deb localhost
- name: Generate docs
run: make docs
- name: Upload artifacts
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
with:
path: docs/
- name: Deploy pages
id: deploy
uses: actions/deploy-pages@13b55b33dd8996121833dbc1db458c793a334630 # v3.0.1