Skip to content

Commit

Permalink
Update workflows to use .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Nov 15, 2023
1 parent 8503c90 commit 2ee3ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/publish-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,13 @@ jobs:
name: Check for new commits
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "should_run=false" >> $GITHUB_OUTPUT

versioning:
needs: setup
if: ${{ needs.setup.outputs.should_run != 'false' }}

name: Versioning
runs-on: ubuntu-latest

outputs:
version: ${{ steps.version.outputs.version }}

steps:

- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Install Minver
run: dotnet tool install --global minver-cli --version 4.3.0

- name: Calculating version
id: version
run: echo "version=$(minver -m 1.0 -p preview -v e)" >> $GITHUB_OUTPUT

publish:
needs: [setup, versioning]
needs: [setup]
if: ${{ needs.setup.outputs.should_run != 'false' }}

secrets: inherit
uses: ./.github/workflows/publish.yaml
with:
version: "${{ needs.versioning.outputs.version }}"
tag: "nightly"
prerelease: true
draft: false
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-version: '7.0.x'

- uses: actions/cache@v1
with:
Expand Down

0 comments on commit 2ee3ca3

Please sign in to comment.