Updated github action
This commit is contained in:
41
.github/workflows/publish-release.yml
vendored
41
.github/workflows/publish-release.yml
vendored
@@ -1,19 +1,38 @@
|
|||||||
---
|
# .github/workflows/semantic-versioning-release.yml
|
||||||
name: Publish Release
|
name: Automated Semantic Versioning Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write # for creating tags and releases
|
||||||
|
issues: write # for commenting on issues
|
||||||
|
pull-requests: write # for commenting on PRs
|
||||||
steps:
|
steps:
|
||||||
- name: Publish Release
|
- name: Checkout code
|
||||||
uses: ncipollo/release-action@v1
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.GITHUB_TOKEN}}
|
# This is required to analyze the full commit history
|
||||||
draft: false
|
fetch-depth: 0
|
||||||
prerelease: false
|
|
||||||
name: "0.0.${{ github.run_number }}"
|
- name: Automated Semantic Release
|
||||||
tag: "0.0.${{ github.run_number }}"
|
# This action wraps the popular semantic-release tool
|
||||||
body: "Release 0.0.${{ github.run_number }}"
|
uses: cycjimmy/semantic-release-action@v4
|
||||||
|
with:
|
||||||
|
# You can specify the branches to release from
|
||||||
|
branch: main
|
||||||
|
env:
|
||||||
|
# GITHUB_TOKEN is required for authentication
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# To make this work, you must follow the Conventional Commits specification.
|
||||||
|
# Examples:
|
||||||
|
# - fix: correct a typo in the documentation
|
||||||
|
# - feat: add a new user authentication endpoint
|
||||||
|
# - feat(api): add rate limiting
|
||||||
|
# BREAKING CHANGE: The API now returns 429 when rate limit is exceeded.
|
||||||
|
|||||||
Reference in New Issue
Block a user