From 70d438a5974b27a2890aecc68d0bc5c55c0d3448 Mon Sep 17 00:00:00 2001 From: daf Date: Sat, 27 Nov 2021 10:30:30 +0000 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20=E2=9C=A8=20Add=20gitversion=20conf?= =?UTF-8?q?iguration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GitVersion.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 GitVersion.yml diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..0ea1b38 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,3 @@ +mode: Mainline +tag-prefix: v +commit-message-incrementing: MergeMessageOnly From 6fd5124fd17c5846779ae621a5106d99a62ef1ee Mon Sep 17 00:00:00 2001 From: daf Date: Sat, 27 Nov 2021 10:32:54 +0000 Subject: [PATCH 2/6] =?UTF-8?q?chore:=20=F0=9F=9A=A7=20Add=20sketch=20of?= =?UTF-8?q?=20release=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bnetlauncher-release.yaml | 80 +++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/bnetlauncher-release.yaml diff --git a/.github/workflows/bnetlauncher-release.yaml b/.github/workflows/bnetlauncher-release.yaml new file mode 100644 index 0000000..8304fb2 --- /dev/null +++ b/.github/workflows/bnetlauncher-release.yaml @@ -0,0 +1,80 @@ +# workflow + +# 1. gitversion +# 2. build using gitversion +# 3. artifacts with gitversion +# 4. create release + + + + +# https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/index.md + +# on: +# push: +# # Sequence of patterns matched against refs/tags +# tags: +# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +# name: Create Release + +# jobs: +# release: +# name: Create Release +# runs-on: windows-latest +# steps: +# - name: Checkout code +# uses: actions/checkout@v2 +# - name: Create Release +# id: create_release +# uses: actions/create-release@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: ${{ github.ref }} +# release_name: Release ${{ github.ref }} +# body: | +# Changes in this Release +# - First Change +# - Second Change +# draft: false +# prerelease: false + +# on: +# push: +# # Sequence of patterns matched against refs/tags +# tags: +# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +# name: Upload Release Asset + +# jobs: +# build: +# name: Upload Release Asset +# runs-on: ubuntu-latest +# steps: +# - name: Checkout code +# uses: actions/checkout@v2 +# - name: Build project # This would actually build your project, using zip for an example artifact +# run: | +# zip --junk-paths my-artifact README.md +# - name: Create Release +# id: create_release +# uses: actions/create-release@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: ${{ github.ref }} +# release_name: Release ${{ github.ref }} +# draft: false +# prerelease: false +# - name: Upload Release Asset +# id: upload-release-asset +# uses: actions/upload-release-asset@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps +# asset_path: ./my-artifact.zip +# asset_name: my-artifact.zip +# asset_content_type: application/zip From 999b44973b17fc485e4f8a9e0c20a4a20cdc37ca Mon Sep 17 00:00:00 2001 From: daf Date: Sat, 27 Nov 2021 10:34:50 +0000 Subject: [PATCH 3/6] =?UTF-8?q?feat:=20=E2=9C=A8=20Add=20pre-commit=20vali?= =?UTF-8?q?dation=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bnetlauncher-validation.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/bnetlauncher-validation.yaml diff --git a/.github/workflows/bnetlauncher-validation.yaml b/.github/workflows/bnetlauncher-validation.yaml new file mode 100644 index 0000000..925b8ac --- /dev/null +++ b/.github/workflows/bnetlauncher-validation.yaml @@ -0,0 +1,14 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [master] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: pre-commit/action@v2.0.3 From dcbcda4e46394aeec18c5616df1a81bdfa4f1b3c Mon Sep 17 00:00:00 2001 From: daf Date: Sat, 27 Nov 2021 10:38:04 +0000 Subject: [PATCH 4/6] =?UTF-8?q?chore:=20=F0=9F=9A=9A=20Renamed=20validatio?= =?UTF-8?q?n=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bnetlauncher-validation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bnetlauncher-validation.yaml b/.github/workflows/bnetlauncher-validation.yaml index 925b8ac..f717e63 100644 --- a/.github/workflows/bnetlauncher-validation.yaml +++ b/.github/workflows/bnetlauncher-validation.yaml @@ -1,4 +1,4 @@ -name: pre-commit +name: Validation Checks on: pull_request: From e9e8871088df2ea576790db15097a516e9641a77 Mon Sep 17 00:00:00 2001 From: daf Date: Sat, 27 Nov 2021 10:44:37 +0000 Subject: [PATCH 5/6] =?UTF-8?q?chore:=20=E2=9A=97=EF=B8=8F=20Test=20pre-co?= =?UTF-8?q?mmit=20validation=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bnetlauncher-build.yaml | 2 +- .github/workflows/bnetlauncher-release.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bnetlauncher-build.yaml b/.github/workflows/bnetlauncher-build.yaml index 0ddb8a5..2657109 100644 --- a/.github/workflows/bnetlauncher-build.yaml +++ b/.github/workflows/bnetlauncher-build.yaml @@ -1,4 +1,4 @@ -name: Build bnetlauncher +name: Build on: [push] diff --git a/.github/workflows/bnetlauncher-release.yaml b/.github/workflows/bnetlauncher-release.yaml index 8304fb2..7145f8b 100644 --- a/.github/workflows/bnetlauncher-release.yaml +++ b/.github/workflows/bnetlauncher-release.yaml @@ -78,3 +78,5 @@ # asset_path: ./my-artifact.zip # asset_name: my-artifact.zip # asset_content_type: application/zip + + From a630e6d39ce7ec09c7b97f1d292d162968b38a67 Mon Sep 17 00:00:00 2001 From: daf Date: Sat, 27 Nov 2021 10:48:39 +0000 Subject: [PATCH 6/6] =?UTF-8?q?chore:=20=F0=9F=91=B7=20Add=20basic=20actio?= =?UTF-8?q?ns=20so=20release=20pipeline=20stops=20sending=20error=20emails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bnetlauncher-release.yaml | 31 +++++++++------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/bnetlauncher-release.yaml b/.github/workflows/bnetlauncher-release.yaml index 7145f8b..a9dd6c0 100644 --- a/.github/workflows/bnetlauncher-release.yaml +++ b/.github/workflows/bnetlauncher-release.yaml @@ -6,25 +6,22 @@ # 4. create release - - # https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/index.md +name: Create Release -# on: -# push: -# # Sequence of patterns matched against refs/tags -# tags: -# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - -# name: Create Release +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 -# jobs: -# release: -# name: Create Release -# runs-on: windows-latest -# steps: -# - name: Checkout code -# uses: actions/checkout@v2 +jobs: + release: + name: Create Release + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 # - name: Create Release # id: create_release # uses: actions/create-release@v1 @@ -78,5 +75,3 @@ # asset_path: ./my-artifact.zip # asset_name: my-artifact.zip # asset_content_type: application/zip - -