diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..23701bc --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,19 @@ +on: [push] +jobs: + test: + runs-on: docker + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + - name: Build Blazor Applicaton + run: dotnet publish -c Release -o ./output + - name: Deploy to Cloudflare Pages + uses: actions/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT }} + command: pages deploy output/wwwroot --project-name=blazing-console diff --git a/.gitignore b/.gitignore index bc78471..bc93372 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,7 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ +output/ # Visual Studio 2015/2017 cache/options directory .vs/