Skip to content

Commit

Permalink
Refactor asscess-token-management workfow
Browse files Browse the repository at this point in the history
- Update name
- Don't need to build on multiple platforms
- Trigger filtered on path spec
- Remove setup dotnet 6.0.x, dont need it
  • Loading branch information
damianh committed Oct 5, 2024
1 parent 0c478f5 commit a39789e
Showing 1 changed file with 19 additions and 35 deletions.
54 changes: 19 additions & 35 deletions .github/workflows/access-token-management-ci.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,39 @@
name: "CI"
name: access-token-management-ci

permissions:
contents: read

on:
workflow_dispatch:
push:
branches:
- main
- features/**
tags:
- '*.*.*'
- access-token-management-v*
paths:
- .github/workflows/access-token-management-ci.yml
- access-token-management/*
pull_request:
paths:
- .github/workflows/access-token-management-ci.yml
- access-token-management/*

env:
DOTNET_NOLOGO: true

permissions:
contents: read

jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [macOS-latest, ubuntu-latest, windows-latest]
name: ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
- name: Setup dotnet
uses: actions/setup-dotnet@v1

- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- run: dotnet --info

- if: contains(matrix.runs-on, 'macOS') || contains(matrix.runs-on, 'ubuntu')
run: ./build.sh
- if: matrix.runs-on == 'windows-latest' && github.ref != 'refs/heads/main' && !contains(github.ref, 'refs/tags/')
run: ./build.ps1
- if: (matrix.runs-on == 'windows-latest') && (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))
env:
SignClientSecret: ${{ secrets.SIGNCLIENTSECRET }}
run: |
./build.ps1 sign
dotnet nuget push .\artifacts\*.nupkg -s https://www.myget.org/F/duende_identityserver/api/v2/package -k ${{ secrets.MYGET }}
- name: Build and test
run: ./build.ps1

0 comments on commit a39789e

Please sign in to comment.