queermandelbrot/.github/workflows/deploy.yml

38 lines
888 B
YAML
Raw Normal View History

2024-12-13 11:23:56 +00:00
name: Deploy
on:
push:
branches:
- main
jobs:
2024-12-13 12:34:57 +00:00
deploy:
2024-12-13 11:23:56 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Beam
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.5.1"
rebar3-version: "3"
# elixir-version: "1.15.4"
- name: Install dependencies
run: |
gleam deps download
gleam run -m esgleam/install
- name: Build
run: |
gleam build
gleam run -m build
- name: Deploy to BunnyCDN
2024-12-13 12:44:34 +00:00
uses: ayeressian/bunnycdn-storage-deploy@v2.2.4
2024-12-13 11:23:56 +00:00
with:
2024-12-13 12:44:34 +00:00
source: "./dist/"
2024-12-13 11:23:56 +00:00
destination: "/"
upload: "true"
remove: "true"
storageZoneName: ${{ secrets.BUNNYCDN_STORAGE_ZONE }}
storagePassword: ${{ secrets.BUNNYCDN_STORAGE_KEY }}
2024-12-13 12:44:34 +00:00