Documentation for v0.137.0 #231
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/[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 |