Spaces:
Sleeping
Sleeping
うみゅ
commited on
Create deploy.yml
Browse files- .github/workflows/deploy.yml +20 -0
.github/workflows/deploy.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: "Deploy"
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [ "main" ]
|
5 |
+
|
6 |
+
jobs:
|
7 |
+
deployment:
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
steps:
|
10 |
+
- name: Checkout repository
|
11 |
+
uses: actions/checkout@main
|
12 |
+
|
13 |
+
- name: Set remote URL
|
14 |
+
run: git remote set-url origin ${{ secrets.PRODUCTION_SERVER }}
|
15 |
+
|
16 |
+
- name: Pull from main
|
17 |
+
run: git pull origin main
|
18 |
+
|
19 |
+
- name: Push to main
|
20 |
+
run: git push origin main
|