Skip to content

Commit 155d7b8

Browse files
committed
Use GitHub Actions
1 parent 3045e29 commit 155d7b8

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
concurrency:
5+
group: "pages"
6+
cancel-in-progress: false
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
14+
with:
15+
python-version: "3.13"
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install -U pip setuptools
19+
pip install vim-vint
20+
- run: vint colors/
21+
22+
build:
23+
needs: lint
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
- run: sudo apt-get install -y --no-install-recommends vim-gtk3
28+
- run: xvfb-run -a gvim -f --version
29+
- name: Generate previews
30+
env:
31+
DISPLAY: ":99"
32+
run: |
33+
Xvfb "${DISPLAY}" &
34+
mkdir -p dist
35+
ci/generate.sh gvim dark_gui
36+
ci/generate.sh gvim light_gui
37+
ci/generate.sh vim dark_256
38+
ci/generate.sh vim light_256
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
41+
with:
42+
path: dist/
43+
44+
deploy:
45+
needs: build
46+
if: github.ref == 'refs/heads/master'
47+
permissions:
48+
pages: write
49+
id-token: write
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

0 commit comments

Comments
 (0)