-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.3 KB
/
deploy.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
46
47
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Pull the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup missing directories and files on the runner
run: |
mkdir -p ~/.ssh
touch ~/.gitconfig
- name: Prepare container
uses: devcontainers/[email protected]
with:
imageName: website # Local name only
imageTag: latest # Local tag only
push: never
- name: Deploy
uses: devcontainers/[email protected]
with:
imageName: website
imageTag: latest
push: never
runCmd: |
git config --global user.name "web_bot"
git config --global user.email "[email protected]"
make prod
git checkout gh-pages
cp -R _site/deploy/* .
git add .
git commit --allow-empty -m "update"
git push https://github.com/shanteacontrols/website gh-pages