Skip to content

Commit

Permalink
Add font/ folder to releases (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Dec 31, 2023
1 parent eb6eb20 commit a391065
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,11 @@ jobs:
id: get-version
run: |
export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//')
echo "::set-output name=version::$PACKAGE_VERSION"
- name: Remove dark theme images from README
uses: mondeja/strip-gh-theme-links@v4
with:
files: README.md
keep: light
strict: true
echo "version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
- name: Configure GIT credentials
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# Commit that will only be included in the tag
- name: Commit dark theme images strip
run: |
git add README.md
git commit -m 'Strip README dark theme image links'
- name: Create and push git tag
if: github.ref == 'refs/heads/master'
run: |
set -e
tag="${{ steps.get-version.outputs.version }}"
git tag -a "${tag}" -m ""
git push origin "${tag}"
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
Expand All @@ -89,6 +71,28 @@ jobs:
run: npm ci
- name: Build
run: npm run build
- name: Remove dark theme images from README
uses: mondeja/strip-gh-theme-links@v4
with:
files: README.md
keep: light
strict: true
# Commits that will only be included in the tag
- name: Commit font
run: |
git add --force font/
git commit -m 'Add font'
- name: Commit dark theme images strip
run: |
git add README.md
git commit -m 'Strip README dark theme image links'
- name: Create and push git tag
if: github.ref == 'refs/heads/master'
run: |
set -e
tag="${{ steps.get-version.outputs.version }}"
git tag -a "${tag}" -m ""
git push origin "${tag}"
- name: Create GitHub release
if: github.ref == 'refs/heads/master'
id: create-release
Expand Down

0 comments on commit a391065

Please sign in to comment.