mirror of
https://github.com/sigmasternchen/x86-64-wordle
synced 2025-03-15 08:09:01 +00:00
chore: Add deploy pipeline
This commit is contained in:
parent
53c9f7360f
commit
7a5ec67721
1 changed files with 34 additions and 0 deletions
34
.github/workflows/deploy.yml
vendored
Normal file
34
.github/workflows/deploy.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
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 Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '16'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy to BunnyCDN
|
||||
uses: ayeressian/bunnycdn-storage-deploy@v1
|
||||
with:
|
||||
source: "./html"
|
||||
storage_zone: ${{ secrets.BUNNYCDN_STORAGE_ZONE }}
|
||||
storage_key: ${{ secrets.BUNNYCDN_STORAGE_KEY }}
|
||||
pull_zone: ${{ secrets.BUNNYCDN_PULL_ZONE }}
|
||||
destination: "/"
|
Loading…
Reference in a new issue