Documentation for v0.136.2 #227
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: Release action-hugo | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
outputs: | |
version: ${{ steps.cleanup.outputs.version }} | |
name: Create action-hugo release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.1 | |
- name: Create action-hugo release | |
id: create_release | |
uses: actions/create-release@v1.1.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: | | |
Release for Hugo version ${{ github.ref }} | |
- id: cleanup | |
name: Cleanup build branch | |
run: | | |
VERSION=$(cat BUILD_VERSION) | |
git config --global user.email "github@utahcon.com" | |
git config --global user.name "Adam Barrett" | |
git push origin :refs/tags/build-${VERSION} || true | |
git push origin :build-${VERSION} || true |