mirror of
https://github.com/sigmasternchen/queermandelbrot
synced 2025-03-14 23:48:54 +00:00
chore: Add deploy workflow
This commit is contained in:
parent
68f7c53c64
commit
c98206045e
2 changed files with 36 additions and 23 deletions
36
.github/workflows/deploy.yml
vendored
Normal file
36
.github/workflows/deploy.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
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
|
||||
uses: ayeressian/bunnycdn-storage-deploy@v2.2.3
|
||||
with:
|
||||
source: "./dist"
|
||||
destination: "/"
|
||||
upload: "true"
|
||||
remove: "true"
|
||||
storageZoneName: ${{ secrets.BUNNYCDN_STORAGE_ZONE }}
|
||||
storagePassword: ${{ secrets.BUNNYCDN_STORAGE_KEY }}
|
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
|
@ -1,23 +0,0 @@
|
|||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: erlef/setup-beam@v1
|
||||
with:
|
||||
otp-version: "26.0.2"
|
||||
gleam-version: "1.5.1"
|
||||
rebar3-version: "3"
|
||||
# elixir-version: "1.15.4"
|
||||
- run: gleam deps download
|
||||
- run: gleam test
|
||||
- run: gleam format --check src test
|
Loading…
Reference in a new issue