Skip to content

Commit

Permalink
Updated .github
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Cerqueira committed Nov 14, 2023
1 parent 5459f93 commit 28dacfa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@ name: Build

on: [push, pull_request]

env:
DOTNET_VERSION: 7.0.x

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-version: '8.0.x' # SDK Version to use.

- name: Build project
run: dotnet build PromptPlus.sln -c Release
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: "CodeQL"

on: [push, pull_request]

env:
DOTNET_VERSION: 7.0.x

jobs:
analyze:
name: Analyze
Expand All @@ -21,12 +18,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-version: '8.0.x' # SDK Version to use.

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ on:
push:
tags: [ v* ]

env:
DOTNET_VERSION: 7.0.x

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-version: '8.0.x' # SDK Version to use.

- name: Setup Version
id: setup_version
Expand Down
3 changes: 3 additions & 0 deletions PromptPlus.sln
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Readme", "Readme", "{C914AC
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{191C90E6-4BB3-49A1-8F1A-B241F2F5094F}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build.yml = .github\workflows\build.yml
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
docs\colors.md = docs\colors.md
docs\globalsettings.md = docs\globalsettings.md
docs\hotkeys.md = docs\hotkeys.md
docs\index.md = docs\index.md
docs\migrateversion.md = docs\migrateversion.md
.github\workflows\publish.yml = .github\workflows\publish.yml
docs\snapshot.md = docs\snapshot.md
whatsnewprev.md = whatsnewprev.md
EndProjectSection
Expand Down

0 comments on commit 28dacfa

Please sign in to comment.