-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.79 KB
/
Copy pathrelease.yml
File metadata and controls
63 lines (53 loc) · 1.79 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: release
# semantic-release: tag + CHANGELOG + GitHub release, with the two font zips attached. releaserc lives in .releaserc.js.
# on-demand only — run it manually from the Actions tab ( or `gh workflow run release.yml` ).
on:
workflow_dispatch:
permissions:
contents: write # push CHANGELOG + create tags/releases
issues: write # semantic-release comments
pull-requests: write # semantic-release comments
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout ( full history + tags )
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: true
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: 20
- name: Setup Python ( for the pre-commit prepareCmd )
uses: actions/setup-python@v7
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Build font zips
run: |
zip -r Lekton-Optimized.zip optimized
zip -r LektonLig.zip LektonLig
zip -r LektonLig-NerdFont.zip LektonLigNF
ls -la Lekton*.zip
- name: Install semantic-release
run: |
npm install --no-save \
semantic-release \
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator \
@semantic-release/changelog \
@semantic-release/exec \
@semantic-release/git \
@semantic-release/github \
conventional-changelog-conventionalcommits
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release