-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adds a workflow to automate github releases on tags
- updates docker workflow to support nightly and releases - adds a changelog file - adds a description to the docker file
- Loading branch information
Showing
4 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Create GitHub release | ||
on: | ||
push: | ||
tags: ['v*'] | ||
|
||
jobs: | ||
publish_binaries: | ||
name: Publish binaries | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
architecture: | ||
- win-x64 | ||
- win-x86 | ||
- linux-x64 | ||
- osx-x64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.x | ||
- name: Publish ${{ matrix.architecture }} | ||
run: dotnet publish ./src/kiota/kiota.csproj -c Release -p:PublishSingleFile=true -r ${{ matrix.architecture }} -o ./${{ matrix.architecture }} | ||
- name: Archive Release ${{ matrix.architecture }} | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
filename: './${{ matrix.architecture }}.zip' | ||
path: './${{ matrix.architecture }}' | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: binaries-${{ matrix.architecture }} | ||
path: ./${{ matrix.architecture }}.zip | ||
create_release: | ||
name: Create Release | ||
needs: [publish_binaries] | ||
environment: | ||
name: gh_releases | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
path: output | ||
- name: Release | ||
uses: anton-yurchenko/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DRAFT_RELEASE: "false" | ||
PRE_RELEASE: "false" | ||
CHANGELOG_FILE: "CHANGELOG.md" | ||
ALLOW_EMPTY_CHANGELOG: "true" | ||
ALLOW_TAG_PREFIX: "true" | ||
with: | ||
args: | | ||
output/binaries-*/*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.0.1] - 2021-04-20 | ||
|
||
### Added | ||
|
||
- Initial GitHub release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters