-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.01 KB
/
source.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
name: Source Code
on:
workflow_run:
workflows: [ "Make Project" ]
types:
- completed
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ijapesigan/docs
env:
GITHUB_PAT: ${{ secrets.PAT }}
permissions:
contents: write
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Clean
run: |
make clean
-
name: Make Project
run: |
make push
-
name: Copy files
run: |
WD="$PWD"
mkdir -p r_source_code
tar -xf .setup/build/*.tar.gz -C r_source_code
DIR=$(ls r_source_code)
cd "r_source_code/$DIR"
mv ./* "$WD/r_source_code"
cd ..
rm -rf "$DIR"
-
name: Push to the src branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: src
FOLDER: r_source_code
GITHUB_TOKEN: ${{ secrets.PAT }}