Skip to content

Commit

Permalink
Merge pull request #59 from Derroylo/develop
Browse files Browse the repository at this point in the history
Release 0.4.2
  • Loading branch information
Derroylo authored Nov 12, 2023
2 parents 1b47ea4 + af5949f commit c72cfcf
Show file tree
Hide file tree
Showing 67 changed files with 1,739 additions and 937 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/workflow-prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: .NET Core

on:
push:
tags:
- 'v*-alpha*'
- 'v*-beta*'
- 'v*-rc*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build -r linux-x64 --configuration Release --no-restore --self-contained false /p:PublishSingleFile=true /p:PublishTrimmed=true
- name: Zip the Build
run: cd ./bin/Release/net7.0/linux-x64/ && zip -r ../../../../gitpod-tool.zip ./* && cd -
- uses: actions/upload-artifact@v3
with:
name: zipped-tool
path: gitpod-tool.zip

publish:
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: zipped-tool
- uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skipIfReleaseExists: true
generateReleaseNotes: true
prerelease: true
artifacts: gitpod-tool.zip
artifactContentType: application/zip
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
tags:
- 'v*'
- '!v*-alpha*'
- '!v*-beta*'
- '!v*-rc*'

jobs:
build:
Expand Down Expand Up @@ -39,7 +42,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skipIfReleaseExists: true
generateReleaseNotes: true
makeLatest: true
artifacts: gitpod-tool.zip
artifactContentType: application/zip
artifactContentType: application/zip
28 changes: 28 additions & 0 deletions .github/workflows/workflow-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: .NET Core

on:
push:
branches:
- 'feature/*'
- 'bugfix/*'

jobs:
tests:
name: .NET Code Analysis runner
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100
- name: Install dependencies
run: dotnet restore
- name: Run .NET Code Analysis
run: |
dotnet tool install -g roslynator.dotnet.cli
export PATH="$PATH:/home/gitpod/.dotnet/tools"
roslynator analyze --ignored-diagnostics CA1822
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ bin
obj
gitpod-tool.zip
.gpt.yml
docker-compose.yml
docker-compose.yml
gitpod.docker-compose.yml
5 changes: 5 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ tasks:
dotnet dev-certs https
dotnet restore
dotnet build
- name: Analyzer
command: |
dotnet tool install -g roslynator.dotnet.cli
echo 'export PATH="$PATH:/home/gitpod/.dotnet/tools"' >> ~/.bash_profile
roslynator analyze --ignored-diagnostics CA1822
- name: Run
command: dotnet run

Expand Down
Loading

0 comments on commit c72cfcf

Please sign in to comment.