36 lines
908 B
YAML
36 lines
908 B
YAML
name: Build Stylus Export
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
paths-ignore: ["docs/**"]
|
|
|
|
jobs:
|
|
build:
|
|
if: github.repository == 'catppuccin/userstyles'
|
|
runs-on: ubuntu-latest
|
|
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
with:
|
|
token: ${{ secrets.USERSTYLES_TOKEN }}
|
|
|
|
- name: Setup Deno
|
|
uses: denoland/setup-deno@v2
|
|
with:
|
|
deno-version: v2.3.5
|
|
cache: true
|
|
|
|
- name: Generate Stylus import
|
|
run: deno task ci:stylus-import
|
|
|
|
- name: Upload release artifact
|
|
run: gh release upload --clobber all-userstyles-export ./dist/import.json
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|