Skip to content

Commit

Permalink
Initial tagged release #major
Browse files Browse the repository at this point in the history
  • Loading branch information
server committed Jun 16, 2022
1 parent 19ccec6 commit 820fdfb
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 45 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/autotag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: autotag

on:
push:
branches:
- main

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"

- name: Bump version and push tag
id: tag
uses: anothrNick/github-tag-action@1.36.0
env:
WITH_V: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: none
RELEASE_BRANCHES: main

outputs:
bump: ${{ steps.tag.outputs.part }}
new_tag: ${{ steps.tag.outputs.new_tag }}

build_release:
runs-on: ubuntu-latest
needs: tag
if: needs.tag.outputs.bump
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Process changelog
run: |
if [[ ! -z $(cat changelog/next.md) ]] ; then
mv changelog/next.md changelog/${{ needs.tag.outputs.new_tag }}.md
touch changelog/next.md
fi
- name: Set changelog path
id: changelog_path
run: |
if [-e changelog/${TAG}.md]
then
echo "::set-output name=changelog::${TAG}"
else
echo "::set-output name=changelog::next"
fi
env:
TAG: ${{ needs.tag.outputs.new_tag }}

- name: Create Github release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.tag.outputs.new_tag }}
release_name: Release ${{ needs.tag.outputs.new_tag }}
body_path: changelog/${{ steps.changelog_path.outputs.changelog }}.md
draft: false
prerelease: false
45 changes: 0 additions & 45 deletions .github/workflows/main.yml

This file was deleted.

1 change: 1 addition & 0 deletions changelog/next.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Initial Tagged Release

0 comments on commit 820fdfb

Please sign in to comment.