-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (59 loc) · 1.97 KB
/
release-calendar.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
name: Release
on:
schedule:
- cron: 0 4 * * * # 4:00 UTC everyday
workflow_dispatch:
permissions:
contents: write # required to make release
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: get site-packages path
id: site_packages
run: echo "site_dir=$(python -c 'import site; print(site.getsitepackages()[0])')" > "$GITHUB_OUTPUT"
- name: cache installed packages
uses: actions/cache@v4
with:
path: ${{ steps.site_packages.outputs.site_dir }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: build VNDB calendar with en & ja releases
run: make en
- name: upload artifact to release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
prerelease: false
tag: en
omitBody: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
artifacts: output/vndb-*
token: ${{ secrets.GITHUB_TOKEN }}
- name: build VNDB calendar with zh (zh-Hans/zh-Hant) & ja releases
run: make zh
- name: upload artifact to release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
prerelease: false
tag: zh
omitBody: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
artifacts: output/vndb-*
token: ${{ secrets.GITHUB_TOKEN }}