-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.45 KB
/
deploy.yml
File metadata and controls
42 lines (36 loc) · 1.45 KB
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
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
# Allow only one production deployment at a time
concurrency:
group: "pages"
cancel-in-progress: false
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: https://nitrocode.github.io/token-deathclock/
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup
- name: Build all generated files
run: npm run build
- name: Deploy to GitHub Pages (gh-pages branch)
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
# Preserve any existing PR preview directories across production deploys
keep_files: true
# Exclude non-site files from the deployment.
# Keep this list in sync with the exclude_assets in preview.yml
# (screenshots is an additional preview-only exclusion).
# .gitignore is excluded here too: if it lands in peaceiris's gh-pages temp
# clone, `git add --all` would silently skip script.js, styles.css and the
# generated data files (all listed in .gitignore).
exclude_assets: '.github,.gitignore,node_modules,tests,scripts,package-lock.json,package.json,milestones.yaml,project-stats.yaml'