Skip to content

Commit

Permalink
ci: add build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Selflocking committed Jan 19, 2024
1 parent 11246e9 commit 27401d0
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
on:
push:
branches:
- main
jobs:
build:
# env:
# AAA: ${{ secrets.AAA }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Build Frontend 🏗️
run: |
cd web
yarn install
yarn build
- name: Build Backend 🏗️
run: |
pip install poetry
poetry install
poetry build
- name: Upload results 📤
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
if-no-files-found: error
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ description = ""
authors = ["5piderMan-Team"]
license = "GPL3"
readme = "README.md"
include = ["web/dist/**/*"]

[tool.poetry.scripts]
backend = "backend.main:main"

0 comments on commit 27401d0

Please sign in to comment.