mirror of
https://github.com/SimonPistache/famfamfam-silk-svg.git
synced 2025-06-08 01:54:20 +02:00
* ci(#202): 👷 Start working on CI Add Semantic Release for automating Releasing versions * ci(#202): 👷 Add Conventional Commit Validation * ci(#202): Change dependency from 1 to v1 * ci(#202): Change dependency wording * ci(#202): Change dependency version to 1.4.1 * ci: Change naming * ci(#202): Update CI to use FG-PAT Set the semantic-release to ignore for CC "^ci" message, Set a fine-grained personal access token for my account to let the bot work on my behalf on my repository, Add permissions to the bot to write on pull-requests, issues, and commit content on main.
36 lines
880 B
YAML
36 lines
880 B
YAML
name: Automatic Release
|
|
run-name: Release a new version of the icon pack on PR's merging
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- merged
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
semantic-release:
|
|
if: "!startsWith(github.event.head_commit.message, 'ci')"
|
|
|
|
name: Semantic Release
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
steps:
|
|
# Checkout data from the repository
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
# Run Semantic-release-action with the included release
|
|
- name: Semantic Release
|
|
uses: cycjimmy/semantic-release-action@v4
|
|
id: semantic # Need an `id` for output variables
|
|
env:
|
|
# Use admin FG-PAT
|
|
GITHUB_TOKEN: ${{ secrets.RELEABOT_TOKEN }} |