Skip to content

Don't require GH CLI for specific account(s) sync #644

Don't require GH CLI for specific account(s) sync

Don't require GH CLI for specific account(s) sync #644

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches: [ main, dev/* ]
paths:
- 'samples/**'
- 'src/**'
pull_request:
types: [opened, synchronize, reopened]
env:
DOTNET_NOLOGO: true
VersionLabel: ${{ github.ref }}
Configuration: Release
jobs:
build:
runs-on: windows-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
- name: 🙏 build
run: |
dotnet build -m:1
dotnet pack --no-build
- name: 🧪 test
env:
GH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
run: dotnet test
- name: 🔓 login
if: github.ref == 'refs/heads/main'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: ⚙ func 4.x
if: github.ref == 'refs/heads/main'
run: npm i -g azure-functions-core-tools@4 --unsafe-perm true
- name: 🚀 deploy
if: github.ref == 'refs/heads/main'
working-directory: src\Web
run: func azure functionapp publish sl-beta --dotnet-isolated
- name: 🚀 sleet
env:
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
if: env.SLEET_CONNECTION != ''
run: |
dotnet tool install -g --version 4.0.18 sleet
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"