-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.01 KB
/
package_code.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
name: ubuntu_latest
on:
push:
branches:
- main
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu_Latest",
os: ubuntu-latest
}
steps:
- name: Checkout Repository and Submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Create tmp branch
run: git branch tmp
- name: Switch to tmp branch
run: git switch tmp
- name: Move module into root
run: mv py_instrument_control_lib/* .
- name: Delete unneeded files
run: rm -r pyproject.toml specifications py_instrument_control_lib playground .gitignore .idea .github
- name: status
run: git status
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Move module into root directory
push_options: '--force tmp:package_submodule'