Skip to content

Commit

Permalink
feat: Rename ci.yml to main.yml, and add support for release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Antaris committed Feb 7, 2024
1 parent 0396489 commit 78f0a63
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
File renamed without changes.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches:
- release/*

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 999
fetch-tags: true
submodules: true
ssh-key: ${{ secrets.ACCESS_KEY }}
- name: Release Notes
run: |
git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: (\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE_NOTES.md
- name: Build
run: ./build.sh --target Publish --publish --source GitHUb --feed ${{ vars.PUBLIC_NUGET_FEED }} --username ${{ vars.PUBLIC_NUGET_USERNAME }} --token ${{ secrets.PUBLIC_NUGET_APIKEY }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

A .NET SDK built from the Trybe OpenAPI specification

[![.github/workflows/ci.yml](https://github.com/IngeniumSE/TrybeSDK/actions/workflows/ci.yml/badge.svg)](https://github.com/IngeniumSE/TrybeSDK/actions/workflows/ci.yml)
[![.github/workflows/main.yml](https://github.com/IngeniumSE/TrybeSDK/actions/workflows/main.yml/badge.svg)](https://github.com/IngeniumSE/TrybeSDK/actions/workflows/main.yml) [![.github/workflows/release.yml](https://github.com/IngeniumSE/TrybeSDK/actions/workflows/release.yml/badge.svg)](https://github.com/IngeniumSE/TrybeSDK/actions/workflows/release.yml)

0 comments on commit 78f0a63

Please sign in to comment.