generated from Ivan-1F/MCDReforged-PluginTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 817 Bytes
/
pack.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
name: Dev Packs
on:
push:
pull_request:
jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mcdreforged
pip install -r requirements.txt
- name: Pack the plugin
run: python -m mcdreforged pack -o dist
- uses: actions/upload-artifact@v2
with:
name: pack-artifacts
path: dist/