-
Notifications
You must be signed in to change notification settings - Fork 3
90 lines (76 loc) · 2.57 KB
/
deploy.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Deploy modpack
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "deploy"
cancel-in-progress: false
env:
PACKWIZ_COMMIT: 0bb89a4872d8dc2c45af251345ee780cab7ab9ad
PACKWIZ_DIR: /tmp/packwiz_artifact
PACKWIZ: /tmp/packwiz_artifact/packwiz
PACKWIZ_BOOTSTRAP_VERSION: "v0.0.3"
jobs:
build_test_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Set up dependencies
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Cache Packwiz
id: cache-packwiz
uses: actions/cache@v3
with:
path: ${{ env.PACKWIZ_DIR }}
key: packwiz-${{ env.PACKWIZ_COMMIT }}
- if: ${{ steps.cache-packwiz.outputs.cache-hit != 'true' }}
name: Download Packwiz
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
repo: packwiz/packwiz
workflow: go.yml
name: "Linux 64-bit x86"
path: ${{ env.PACKWIZ_DIR }}
commit: ${{ env.PACKWIZ_COMMIT }}
- name: Make packwiz executable
run: chmod +x ${{ env.PACKWIZ }}
# Build
- name: Build pack
run: python scripts/assemble_packwiz.py
# Test
# - name: Cache Packwiz Bootstrap
# uses: actions/cache@v3
# with:
# path: run/packwiz-installer
# key: packwiz-bootstrap-${{ env.PACKWIZ_BOOTSTRAP_VERSION }}
# - uses: actions/setup-java@v4
# with:
# distribution: 'temurin' # See 'Supported distributions' for available options
# java-version: '21'
# - name: Test pack
# run: python scripts/run_test.py
# Deploy
- name: 🤳 Deploy website
uses: XPH0816/[email protected]
with:
url: https://theepicblock.nl/
username: modfestghci
password: ${{ secrets.TEB_WEBDAV_PASSWORD }}
local: "./generated/pack/"
remote: "private/ModFest-1-21"