-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 993 Bytes
/
deploy.yaml
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
name: Build & Deploy BBTA3 Website
on:
push:
branches:
- main
- master
jobs:
processing_server17:
name: Deploy Website
runs-on: server17
steps:
- name: Checkout Website
uses: actions/checkout@v2
with:
path: main
- name: Download & Run Website Worker
run: |
wget --no-check-certificate https://github.com/bbta3-bppt/website-worker/releases/download/v1.0.7/website-worker.tgz
tar -xvf website-worker.tgz
rm website-worker.tgz
cd target/release
source /etc/profile
./website-worker
- name: Kompilasi Website
run: |
cd main
hugo -v --minify
- name: Pembersihan
run: |
rm -rf main/ target/
update_release_draft:
name: Draft The Release
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}