-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.18 KB
/
prepare_files.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
name: Prepare Files
on:
push:
branches:
- '**'
- '!master'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
prepare-files:
name: Update compiled files
runs-on: ubuntu-latest
steps:
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
- uses: actions/checkout@v4
- name: Switch to SSH
run: git remote set-url origin [email protected]:landamessenger/git-board-flow.git
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
- name: Commit updated dist directory
uses: EndBug/add-and-commit@v9
with:
add: './dist/'
committer_name: GitHub Actions
committer_email: [email protected]
default_author: user_info
message: 'gh-action: updated compiled files'