-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.39 KB
/
codespaces.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
48
---
name: codespaces
on:
push:
branches:
- master
jobs:
dotfiles:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: webfactory/[email protected]
with:
ssh-private-key: >-
${{ secrets.DEPLOY_KEY_SSH_CONFIG }}
${{ secrets.DEPLOY_KEY_TMUXINATOR_PROFILES }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v3
id: import_gpg
with:
git-user-signingkey: true
git-commit-gpgsign: true
git-committer-name: ${{ secrets.GIT_USER_NAME }}
git-committer-email: ${{ secrets.GIT_USER_EMAIL }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run codespaces
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.CODESPACES_DEPLOY_KEY }}
publish_dir: .codespaces
enable_jekyll: true
keep_files: false
external_repository: razor-x/codespaces-dotfiles
publish_branch: master
user_name: ${{ secrets.GIT_USER_NAME }}
user_email: ${{ secrets.GIT_USER_EMAIL }}