-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 1.06 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Release
on:
push:
workflow_dispatch:
pull_request:
branches: [ "main" ]
jobs:
build:
uses: osscameroon/place-api/.github/workflows/build.yml@main
tests:
needs: build
uses: osscameroon/place-api/.github/workflows/tests.yml@main
release:
needs: tests
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Important for semantic-release to analyze commits
- name: Run semantic-release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/git
@semantic-release/exec
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GA_WORKFLOW_DEPLOYMENTS_TOKEN }}