-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1020 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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build
run-name: Build Code
on:
workflow_dispatch:
push:
branches: ['main']
permissions:
contents: write
concurrency:
group: 'build'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Build App
run: |
npm ci
echo -n 'VITE_DISCORD_RENEW_WEBHOOK=' > .env
echo '${{ secrets.DISCORD_RENEW_WEBHOOK }}' | base64 | tr -d "\n\r" >> .env
echo >> .env
echo -n 'VITE_DISCORD_FORM_WEBHOOK=' >> .env
echo '${{ secrets.DISCORD_FORM_WEBHOOK }}' | base64 | tr -d "\n\r" >> .env
npm run build
cd dist
touch .nojekyll
- name: Minify Code
uses: Lenni009/minify-js@main
with:
directory: dist
overwrite: true
- name: Push to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist # The folder the action should deploy.