Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl authored Sep 29, 2024
1 parent e9c8f10 commit 042c420
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Create Release

on:
workflow_dispatch:
inputs:
version:
type: string

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- run: python3 update-version.py "${{ github.event.inputs.version }}

- name: Commit Version
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "New version: ${{ github.event.inputs.version }}"

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.event.inputs.version }}
release_name: "Release ${{ github.event.inputs.version }}"
draft: false
prerelease: false

0 comments on commit 042c420

Please sign in to comment.