-
Notifications
You must be signed in to change notification settings - Fork 35
36 lines (29 loc) · 877 Bytes
/
static_build.yml
File metadata and controls
36 lines (29 loc) · 877 Bytes
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: Static Build
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
build:
if: github.repository == 'mouredev/retos-programacion-web' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run build script
run: |
chmod +x ./remote_build.sh
./remote_build.sh
- name: Commit and Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update static build
commit_user_name: Brais Moure [GitHub Actions]
commit_user_email: mouredev@gmail.com
commit_author: Brais Moure <mouredev@gmail.com>