Skip to content

Documentation for v0.137.0 #231

Documentation for v0.137.0

Documentation for v0.137.0 #231

Workflow file for this run

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/[email protected]
- name: Create action-hugo release
id: create_release
uses: actions/[email protected]
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 "[email protected]"
git config --global user.name "Adam Barrett"
git push origin :refs/tags/build-${VERSION} || true
git push origin :build-${VERSION} || true