-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (50 loc) · 1.65 KB
/
daily-rebuild.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
name: Daily rebuild
on:
push:
branches:
- 'master'
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pipenv'
- name: Setup base environment
run: |
echo "timestamp=$(date +%s)" >> $GITHUB_ENV
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Setup pipenv environment
run: pipenv install --deploy
- name: Download dats and generate profile.xml for Redump
if: ${{ ! cancelled() }}
run: pipenv run python3 redump.py
- name: Download dats and generate profile.xml for No-Intro
if: ${{ ! cancelled() }}
run: pipenv run python3 no-intro.py
# HTGD disabled for now
#- name: Download dats and generate profile.xml for HTGD
# if: ${{ ! cancelled() }}
# run: pipenv run python3 smdb.py
# dats.site disabled for now
#- name: Download dats and generate profile.xml for dats.site
# if: ${{ ! cancelled() }}
# run: pipenv run python3 dats-site.py
- name: Create release
if: ${{ ! cancelled() }}
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "*.xml,*.zip"
commit: master
name: Daily_Rebuild
makeLatest: true
tag: Daily_Rebuild
token: ${{ secrets.GITHUB_TOKEN }}
body: "Automatically released by github actions"