Make several structure improvements #67
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 .NET 8 Blazor Wasm | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GIT_USERNAME: ${{ secrets.GIT_USERNAME }} | |
GIT_PACKAGES_TOKEN: ${{ secrets.GIT_PACKAGES_TOKEN }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Add sources | |
run: dotnet nuget add source --username GIT_USERNAME --password ${{ secrets.GIT_PACKAGES_TOKEN }} --store-password-in-clear-text --name "Monambike GitHub" "https://nuget.pkg.github.com/monambike/index.json" | |
- name: Restore dependencies | |
run: dotnet restore src/Monambike.Website.sln | |
- name: Build and publish (www) | |
run: dotnet publish src/Monambike.Web/Monambike.Web.csproj -c Release -f net8.0 -r browser-wasm --self-contained --output ./publish-folder | |
- name: Build and publish (links) | |
run: dotnet publish src/Monambike.Links/Monambike.Links/Monambike.Links.csproj -c Release -f net8.0 -r browser-wasm --self-contained --output ./publish-folder/links | |
- name: Deploy via FTP | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.4 | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: ./publish-folder/ | |
server-dir: public_html/ | |
passive: true |