-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 906 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy
on: push
env:
elixir-version: '1.14.5'
erlang-version: '26.1'
node-version: '18.18.0'
jobs:
deploy-still:
if: github.ref == 'refs/heads/still'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.erlang-version }}
elixir-version: ${{ env.elixir-version }}
- uses: actions/setup-node@v2
with:
node-version: ${{ env.node-version }}
- working-directory: ./priv/site/assets
run: yarn install
- working-directory: ./priv/site/assets
run: npx tailwindcss --input=css/app.css --output=../css/app.css --postcss
- run: mix deps.get
- run: mix format --check-formatted
- run: mix publish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
MIX_ENV: 'prod'