From 5ef22b3dad99542e3e3dc46316b9f24acc3391fb Mon Sep 17 00:00:00 2001 From: Ivy Collective Date: Mon, 23 Dec 2024 16:12:15 -0500 Subject: [PATCH] add CI/CD --- .forgejo/workflows/deploy.yaml | 19 +++++++++++++++++++ .gitignore | 1 + 2 files changed, 20 insertions(+) create mode 100644 .forgejo/workflows/deploy.yaml 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/