Merge pull request #3 from oxbridge-econ/dev
Browse files- .github/workflows/dev.yml +26 -0
.github/workflows/dev.yml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub - Dev
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [dev]
|
5 |
+
workflow_dispatch:
|
6 |
+
|
7 |
+
jobs:
|
8 |
+
sync-to-hub:
|
9 |
+
runs-on: ubuntu-latest
|
10 |
+
steps:
|
11 |
+
- uses: actions/checkout@v3
|
12 |
+
with:
|
13 |
+
fetch-depth: 0
|
14 |
+
ref: dev # Explicitly checkout the dev branch
|
15 |
+
- name: Configure Git user
|
16 |
+
run: |
|
17 |
+
git config --global user.email "[email protected]"
|
18 |
+
git config --global user.name "GitHub Actions"
|
19 |
+
- name: Merge dev into main
|
20 |
+
run: |
|
21 |
+
git checkout main
|
22 |
+
git merge dev --no-ff --no-edit
|
23 |
+
- name: Push to hub
|
24 |
+
env:
|
25 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
26 |
+
run: git push https://OxbridgeEcon:[email protected]/spaces/Oxbridge-Economics/finfast-summary-dev main --force
|