Skip to content

new version

new version #104

Workflow file for this run

name: build
on:
push:
branches: [ master ]
# paths:
# - '**.csproj'
# - '**.sln'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- name: Install dependencies
run: |
cd src
cd NetCore2Blockly
dotnet restore
echo 'done restore'
#dotnet tool restore --add-source https://myget.org/F/natemcmaster/api/v3/index.json
#dotnet dotnet-project-licenses -j -i .
echo 'done project licences'
#dotnet dotnet-thx > thanks.txt
echo 'done thanks'
#dotnet dotnet-outdated -o outdated.csv -of csv
#dotnet list package --outdated --include-transitive
echo 'done outdated'
#dotnet pwsh copyToRoot.ps1
cd ..
cd ..
echo 'back to source dir'
- name: test
run: echo done
# - name: run commit
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# git add --all
# git status
# git commit -m "generate thanks, outdate, licences" -a --allow-empty
# shell: cmd
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: pack
run: |
cd src
cd NetCore2Blockly
cd NetCore2BlocklyNew
xcopy ..\TestBlocklyHtml\wwwroot\BlocklyAutomation\*.* BlocklyAutomation\ /E /F /I /Y /R
echo 'done copy'
del BlocklyAutomation\assets\loadAtStartup\swaggers.json
ren BlocklyAutomation\assets\loadAtStartup\swaggersForLocalAPINetCore.json swaggers.json
del BlocklyAutomation\assets\settings.json
ren BlocklyAutomation\assets\settingsForLocalAPI.json settings.json
dotnet pack --include-source -o netcoreb
dir netcoreb/*
# - name: Archive production artifacts
# uses: actions/upload-artifact@v2
# with:
# name: AllReleases
# path: |
# src/NetCore2Blockly/NetCore2BlocklyNew/netcoreb
# retention-days: 1
- name: push to nuget
run: |
dir ${{github.workspace}}\src\NetCore2Blockly\NetCore2BlocklyNew\netcoreb\NetCore2Blockly*symbols.nupkg
dotnet nuget push ${{github.workspace}}\src\NetCore2Blockly\NetCore2BlocklyNew\netcoreb\NetCore2Blockly*symbols.nupkg --api-key ${{ secrets.NUGETAPIKEY }} --source https://api.nuget.org/v3/index.json