mirror of
https://github.com/sigmasternchen/html-tictactoe
synced 2025-03-14 19:18:55 +00:00
chore: Add deployment pipeline
This commit is contained in:
parent
2987646ff6
commit
267ae7e682
1 changed files with 33 additions and 0 deletions
33
.github/workflows/deploy.yml
vendored
Normal file
33
.github/workflows/deploy.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: 3.12
|
||||
- name: Set up Poetry
|
||||
run: python -m pip install poetry
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
- name: Build project
|
||||
run: poetry run python -m generator
|
||||
- name: Deploy to BunnyCDN
|
||||
uses: ayeressian/bunnycdn-storage-deploy@v2.2.3
|
||||
with:
|
||||
source: "./output"
|
||||
destination: "/"
|
||||
upload: "true"
|
||||
remove: "true"
|
||||
storageZoneName: ${{ secrets.BUNNYCDN_STORAGE_ZONE }}
|
||||
storagePassword: ${{ secrets.BUNNYCDN_STORAGE_KEY }}
|
Loading…
Reference in a new issue