うみゅ commited on
Commit
0313122
·
unverified ·
1 Parent(s): 2a425cf

Create deploy.yml

Browse files
Files changed (1) hide show
  1. .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