File tree Expand file tree Collapse file tree 2 files changed +24
-14
lines changed Expand file tree Collapse file tree 2 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 21
21
22
22
jobs :
23
23
build :
24
+ name : Build Pan Docs
24
25
runs-on : ubuntu-latest
25
26
steps :
26
27
- name : Checkout pandocs
69
70
if-no-files-found : error
70
71
71
72
deploy :
73
+ name : Deploy to GitHub pages
72
74
runs-on : ubuntu-latest
73
75
needs : build
74
76
# Do not run this unless *pushing* to `master`
@@ -100,17 +102,3 @@ jobs:
100
102
git add -A
101
103
git commit -am 'Update build'
102
104
git push -v
103
- publish-docker-image :
104
- runs-on : ubuntu-latest
105
- steps :
106
- - uses : actions/checkout@v2
107
- - name : Login to GitHub Container Registry
108
- uses : docker/login-action@v1
109
- with :
110
- registry : ghcr.io
111
- username : ${{ github.actor }}
112
- password : ${{ secrets.GITHUB_TOKEN }}
113
- - name : Build and push Docker image to the GHCR
114
- run : |
115
- docker build . --tag ghcr.io/gbdev/pandocs:latest
116
- docker push ghcr.io/gbdev/pandocs:latest
Original file line number Diff line number Diff line change
1
+ name : Build Docker image and publish it to GitHub Container Registry
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ publish-docker-image :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Login to GitHub Container Registry
14
+ uses : docker/login-action@v1
15
+ with :
16
+ registry : ghcr.io
17
+ username : ${{ github.actor }}
18
+ password : ${{ secrets.GITHUB_TOKEN }}
19
+ - name : Build and push Docker image to the GHCR
20
+ run : |
21
+ docker build . --tag ghcr.io/gbdev/pandocs:latest
22
+ docker push ghcr.io/gbdev/pandocs:latest
You can’t perform that action at this time.
0 commit comments