From 30829d41f1191b5d7463a3abd5bee221e8bc6a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 16 Jun 2025 17:07:11 +0200 Subject: [PATCH] add workflow for forgejo actions? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .forgejo/workflows/pl-fe.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/pl-fe.yaml b/.forgejo/workflows/pl-fe.yaml index bdec38e2a..8b0bc5ebb 100644 --- a/.forgejo/workflows/pl-fe.yaml +++ b/.forgejo/workflows/pl-fe.yaml @@ -8,6 +8,8 @@ on: jobs: build: + container: + image: "ghcr.io/catthehacker/ubuntu:runner-22.04" runs-on: docker name: Test and upload artifacts strategy: @@ -16,7 +18,9 @@ jobs: steps: - name: Install system dependencies - run: sudo apt install -y unzip + run: | + sudo apt update + sudo apt install -y zip - name: Checkout code uses: actions/checkout@v3 @@ -47,17 +51,11 @@ jobs: git diff git diff --quiet || (echo "Locale files are out of date. Please run \`yarn i18n\`" && exit 1) - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: pl-fe - path: packages/pl-fe/dist - - name: Include archive working-directory: ./packages/pl-fe/dist run: zip -r ../pl-fe.zip . - - name: build + - name: Build with landing page env: NODE_ENV: production working-directory: ./packages/pl-fe @@ -78,8 +76,12 @@ jobs: working-directory: ./packages/pl-api run: cp docs ../pl-fe/dist/pl-api-docs -r + - name: cloudflare lol + working-directory: . + run: yarn add wrangler -W + - name: Deploy to Cloudflare - uses: cloudflare/wrangler-action@v3 + uses: https://github.com/cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}