Skip to content

Commit

Permalink
🚀 Prepare v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Feb 17, 2021
1 parent 63cfd22 commit d00499d
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 93 deletions.
158 changes: 68 additions & 90 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,95 +1,73 @@
name: build

on:
push:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
branches: [main, dev]

pull_request:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
branches: [main]
push:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
branches: [main, dev]
pull_request:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install build dependencies (apt)
run: |
sudo apt install libx11-dev libxcursor-dev libpng-dev
continue-on-error: false

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: yarn install
- run: yarn render

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Cache pip dependencies
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
continue-on-error: false

- name: Generating `GoogleDot` Cursor Theme
run: python build.py

- name: Compressing Artifacts
run: |
tar -cvzf logs.tar.gz build.log
tar -cvzf bitmaps.tar.gz bitmaps
tar -cvzf GoogleDot.tar.gz themes
- name: Uploading `GoogleDot` Build Log artifact
uses: actions/upload-artifact@v2
with:
name: logs
path: logs.tar.gz

- name: Uploading `bitmaps` artifact
uses: actions/upload-artifact@v2
with:
name: bitmaps
path: bitmaps.tar.gz

- name: Uploading `GoogleDot` Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot
path: GoogleDot.tar.gz
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install build dependencies (apt)
run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev
continue-on-error: false
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Caching yarn packages
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Set Up NodeJS 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Caching pip packages
uses: actions/cache@v2
id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`)
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Generating `GoogleDot` Cursor Theme
run: make
continue-on-error: false

- name: Compressing UNIX theme
run: tar -cvzf GoogleDot.tar.gz themes/GoogleDot

- name: Uploading `bitmaps` artifact
uses: actions/upload-artifact@v2
with:
name: bitmaps
path: bitmaps/*
- name: Uploading `GoogleDot` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot
path: GoogleDot.tar.gz
- name: Uploading `GoogleDot` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: GoogleDot_Windows
path: themes/GoogleDot_Windows/*
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [v1.0.1] - 17 Feb 2021

### Added

- Figma file added inside **README.md**
Expand All @@ -31,5 +33,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Logo and badges
- CI/CD Pipelines

[unreleased]: https://github.com/ful1e5/Google_Cursor/compare/v1.0.0...main
[unreleased]: https://github.com/ful1e5/Google_Cursor/compare/v1.0.1...main
[v1.0.1]: https://github.com/ful1e5/Google_Cursor/compare/v1.0.0...v1.0.1
[v1.0.0]: https://github.com/ful1e5/Google_Cursor/tree/v1.0.0
2 changes: 1 addition & 1 deletion bitmapper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google_cursor",
"version": "1.0.0",
"version": "1.0.1",
"description": "🍭 Cursor theme inspired on Google",
"main": "index.js",
"repository": "[email protected]:ful1e5/Google_Cursor.git",
Expand Down
2 changes: 1 addition & 1 deletion builder/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="gbpkg",
version="1.1.0",
version="1.0.1",
description="Generate 'GoogleDot' cursor theme from PNGs file",
url="https://github.com/ful1e5/Google_Cursor",
packages=["gbpkg"],
Expand Down

0 comments on commit d00499d

Please sign in to comment.