Publish selected preview build #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish selected preview build | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
env: | |
NODE_ENV: production | |
steps: | |
- name: Setup dotnet tools | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "7.0.x" | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- name: Checkout repository | |
uses: actions/checkout@master | |
- name: Restore NPM packages | |
working-directory: ./BytexDigital.Blazor.Components.CookieConsent | |
run: npm install --only=dev | |
- name: Build CSS | |
working-directory: ./BytexDigital.Blazor.Components.CookieConsent | |
run: npm run build | |
- name: Build project | |
run: dotnet build -c Release -p:VersionSuffix=preview.$(date +%s) | |
- name: Push project | |
run: dotnet nuget push **/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate |