Skip to content

Commit

Permalink
build: Automated release
Browse files Browse the repository at this point in the history
  • Loading branch information
alepee committed Nov 13, 2024
1 parent 9a2acc9 commit 60b7a5f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Generate version
uses: alepee/calendar-version-action@v1
id: version
with:
dateFormat: "YYYY.0M"
format: "%NOW%.0b%MICRO%"

- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
name: Release v${{ steps.version.outputs.version }}
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 60b7a5f

Please sign in to comment.