-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (25 loc) · 812 Bytes
/
main.yaml
File metadata and controls
26 lines (25 loc) · 812 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
name: "Repo publisher"
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone Repository
run: git clone --recursive --branch dev https://github.com/SpotifyXP/SpotifyXP-Repository
- name: Run generate_repo.py script
working-directory: ./SpotifyXP-Repository
run: python3 generate_repo.py
- name: Make public directory
working-directory: ./SpotifyXP-Repository
run: mkdir public
- name: Copy files to public directory
working-directory: ./SpotifyXP-Repository
run: cp -R repo public/
- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./SpotifyXP-Repository/public