feat(import-styles): init (#399)

Co-authored-by: uncenter <[email protected]>
Co-authored-by: nekowinston <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-12-15 15:37:32 +00:00
1 parent 730ac8b46a
commit a7897982ca
6 files changed
+112 -30

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
name: Lint & Build
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
lint:
name: Lint Userstyles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Deno
uses: nekowinston/setup-deno@main
with:
deno-version: v1.x
- name: Run Lint
run: deno task lint
build:
name: Generate Stylus Export
runs-on: ubuntu-latest
needs: lint
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.USERSTYLES_TOKEN }}
ref: ${{ github.ref }}
- name: Setup Deno
uses: nekowinston/setup-deno@main
with:
deno-version: v1.x
- name: Generate import file
run: deno task ci:generate-import
- name: Upload Release Artifacts
run: gh release upload --clobber all-userstyles-export ./dist
-23
View File
@@ -1,23 +0,0 @@
name: Lint
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
lint:
name: Lint Userstyles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Deno
uses: nekowinston/setup-deno@main
with:
deno-version: v1.x
- name: Run Lint
run: deno task lint