Skip to content

Commit

Permalink
ci(release): init
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonGamerBot-QK committed Aug 30, 2024
1 parent 74908d5 commit 8e773e4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
workflow_dispatch:

permissions:
contents: write

jobs:
release-please:
runs-on: ubuntu-latest
# outputs:
# release_created: ${{ steps.release.outputs.release_created }}
# tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- name: Get Version
id: json_properties
uses: ActionsTools/read-json-action@main
with:
file_path: "package.json"
- uses: actions/checkout@v4
- name: Tag Major & Minor
run: |
git config user.name "Zeon-neon [ACTIONS]"
git config user.email [email protected]
git tag -d v${{ steps.json_properties.outputs.version }} || true
git push origin :v${{ steps.json_properties.outputs.version}} || true
git tag -a v${{ steps.json_properties.outputs.version }} -m "v${{ steps.json_properties.outputs.version }}"
git push origin v${{ steps.json_properties.outputs.version}}

0 comments on commit 8e773e4

Please sign in to comment.