Skip to content

Commit

Permalink
Merge pull request #45 from mtrogman/test-auto-release
Browse files Browse the repository at this point in the history
Test auto release
  • Loading branch information
mtrogman authored Oct 12, 2023
2 parents 849740e + 28284fb commit 413e73b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create Release

on:
push:
branches:
- main

jobs:
create-release:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Get Version from VERSION File
id: get_version
run: |
VERSION=$(cat VERSION)
echo "::set-output name=version::$VERSION"
- name: Create Git Tag
run: |
TAG_NAME="${{ steps.get_version.outputs.version }}"
git tag -a $TAG_NAME -m "Release $TAG_NAME"
git push origin $TAG_NAME
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release $TAG_NAME
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.4.0

0 comments on commit 413e73b

Please sign in to comment.