Skip to content

.github/workflows/build.yml #1

.github/workflows/build.yml

.github/workflows/build.yml #1

Workflow file for this run

on: workflow_dispatch
jobs:
build_cursor_theme_job:
runs-on: ubuntu-latest
name: Build cursor theme
env:
ARCHIVE_NAME: phinger-cursors-variants.tar.bz2
BUILD_DIRECTORY: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Cursor Theme
uses: phisch/cursor-theme-builder/action/build@v1.0
with:
cursor_theme_json: theme/cursor-theme.json
output_directory: ${{ env.BUILD_DIRECTORY }}/themes
- name: Create artifact
working-directory: ${{ env.BUILD_DIRECTORY }}
run: tar -cjf ${{ env.ARCHIVE_NAME }} -C themes .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: phinger-cursors-variants
path: ${{ env.BUILD_DIRECTORY }}/${{ env.ARCHIVE_NAME }}
- name: Draft Release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.BUILD_DIRECTORY }}/${{ env.ARCHIVE_NAME }}
draft: true
tag_name: ${{ job.export_cursor_theme.outputs.version }}