add workflow for forgejo actions?
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -8,6 +8,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
container:
|
||||||
|
image: "ghcr.io/catthehacker/ubuntu:runner-22.04"
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
name: Test and upload artifacts
|
name: Test and upload artifacts
|
||||||
strategy:
|
strategy:
|
||||||
@ -16,7 +18,9 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: sudo apt install -y unzip
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y zip
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -47,17 +51,11 @@ jobs:
|
|||||||
git diff
|
git diff
|
||||||
git diff --quiet || (echo "Locale files are out of date. Please run \`yarn i18n\`" && exit 1)
|
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
|
- name: Include archive
|
||||||
working-directory: ./packages/pl-fe/dist
|
working-directory: ./packages/pl-fe/dist
|
||||||
run: zip -r ../pl-fe.zip .
|
run: zip -r ../pl-fe.zip .
|
||||||
|
|
||||||
- name: build
|
- name: Build with landing page
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
working-directory: ./packages/pl-fe
|
working-directory: ./packages/pl-fe
|
||||||
@ -78,8 +76,12 @@ jobs:
|
|||||||
working-directory: ./packages/pl-api
|
working-directory: ./packages/pl-api
|
||||||
run: cp docs ../pl-fe/dist/pl-api-docs -r
|
run: cp docs ../pl-fe/dist/pl-api-docs -r
|
||||||
|
|
||||||
|
- name: cloudflare lol
|
||||||
|
working-directory: .
|
||||||
|
run: yarn add wrangler -W
|
||||||
|
|
||||||
- name: Deploy to Cloudflare
|
- name: Deploy to Cloudflare
|
||||||
uses: cloudflare/wrangler-action@v3
|
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
|||||||
Reference in New Issue
Block a user