From 4b4e0c0f94e9c1987183262d4974d7655c732097 Mon Sep 17 00:00:00 2001 From: FUH22860 <101731147+FUH22860@users.noreply.github.com> Date: Wed, 7 Jun 2023 14:16:12 +0200 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..eb57755 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Deploy blazor to GitHub Pages + +on: + push: + branches: [ "dev" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0 + - name: Publish + run: dotnet publish --configuration Release -o release --nologo --runtime linux-x64 --self-contained src/y4f/y4f.csproj + - name: Commit wwwroot to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: release/wwwroot