forked from PeterFeicht/cppreference-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.03 KB
/
Copy pathdump.yml
File metadata and controls
43 lines (36 loc) · 1.03 KB
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
name: Dump cppreference
on:
workflow_dispatch:
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Get current date
id: date
run: echo "{date}={$(date +'%Y%m%d%H%M')}" >> $GITHUB_STATE
- name: Generate
run: |
make source && tar -Jcvf dump.tar.xz reference
cp dump.tar.xz reference/dump.tar.xz
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: "reference"
- name: Deploy to raw dumps repo
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
with:
source-directory: reference
destination-github-username: pydongery
destination-repository-name: cppreference
user-email: noreply@pydong.org
user-name: cppreference bot
target-branch: raw_dump
commit-message: Dumped at ${{ env.date }}