Skip to content

ci: add release workflow for Artifactory cargo publish #10

ci: add release workflow for Artifactory cargo publish

ci: add release workflow for Artifactory cargo publish #10

# Project: hs-rustlib
# File: .github/workflows/semantic-release.yml
# Purpose: Create version tags using semantic-release
# License: LicenseRef-HyperSec-EULA
# Copyright: (c) 2025 HyperSec Pty Ltd
#
# Generated by: HyperSec CI attach.sh
# CI Repo: https://github.com/hypersec-io/ci
name: Semantic Release
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
name: Create Version and Tag
runs-on: ${{ vars.GH_RUNNER_DEFAULT || 'ubuntu-latest' }}
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
token: ${{ steps.app-token.outputs.token }}
- name: Run semantic-release
uses: ./ci/actions/release/semantic
with:
github-token: ${{ steps.app-token.outputs.token }}