Skip to content

Commit

Permalink
Modernize CI (#10)
Browse files Browse the repository at this point in the history
* Modernize CI
  • Loading branch information
mondeja authored Jan 4, 2023
1 parent 6115d12 commit 29c32e5
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 14 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
DISPLAY: :0
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install tests dependencies
run: sudo apt-get install -y xvfb
- name: Install Inkscape
Expand All @@ -41,34 +41,31 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Zip extension
run: zip braille-l18n.zip -9 text_braille_l18n.*
- name: Get tag metadata
id: tag
run: |
TAG_TITLE=${GITHUB_REF#refs/*/}
echo ::set-output name=title::$TAG_TITLE
echo "title=$TAG_TITLE" >> $GITHUB_OUTPUT
git -c protocol.version=2 fetch --prune --progress \
--no-recurse-submodules origin \
+refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
TAG_BODY="$(git tag -l --format='%(contents)' $TAG_TITLE)"
TAG_BODY="${TAG_BODY//'%'/'%25'}"
TAG_BODY="${TAG_BODY//$'\n'/'%0A'}"
TAG_BODY="${TAG_BODY//$'\r'/'%0D'}"
echo ::set-output name=body::$TAG_BODY
echo "body=$TAG_BODY" >> $GITHUB_OUTPUT
- name: Create Release
uses: actions/create-release@v1.1.4
uses: softprops/action-gh-release@v1
id: create-release
with:
name: ${{ steps.tag.outputs.title }}
tag_name: ${{ steps.tag.outputs.title }}
release_name: ${{ steps.tag.outputs.title }}
body: ${{ steps.tag.outputs.body }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: shogo82148/[email protected]
name: Upload release assets
with:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/update-copyright-years.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Update copyright years

permissions:
pull-requests: write
contents: write

on:
workflow_dispatch:
schedule:
- cron: 0 3 2 1 *

jobs:
update-license-year:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributions guide

You only need Inkscape>=1.0, a posix shell and (optionally) the
[xvfb][xvfb-package] package to develop and test.
You only need Inkscape>=1.0, a posix shell and the [xvfb][xvfb-package]
package to develop and test.

## Make changes to the code

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2021, Álvaro Mondéjar Rubio
Copyright (c) 2021-2023, Álvaro Mondéjar Rubio
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Text-to-Braille Inkscape extension with multiple localized alphabets.
| Euskera | [Braille español (Grado 1)][es-cbe-guide] by [CBE][cbe-once] |
| Catalan/Valencian | [Braille español (Grado 1)][es-cbe-guide] by [CBE][cbe-once] |

> See [NOTES.md][notes] to details of each implementation.
> See [NOTES.md][notes] for details of each implementation.
## Installation

1. Download `braille-l18n.zip` asset from [Releases page][releases] and extract
it.
1. Move extracted files to your Inkscape user's extensions directory. If you
don't know its location, open it from `Edit` -> `Preferences` -> `System` ->
`Users extensions`.
`Users extensions` or executing `inkscape --user-data-directory` on your terminal.
1. Run Inkscape and you'll see the extension in `Extensions` -> `Text`.

## Usage
Expand Down

0 comments on commit 29c32e5

Please sign in to comment.