mirror of
https://github.com/GeoffreyFrogeye/fringer-cursors.git
synced 2025-09-05 14:00:23 +02:00
switched to v1.0 build action
This commit is contained in:
parent
743db6ca7f
commit
2ca529c12f
1 changed files with 7 additions and 6 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
@ -10,22 +10,23 @@ jobs:
|
|||
|
||||
- name: Generate variants and assets from Figma file
|
||||
id: figma_cursor_theme
|
||||
uses: phisch/figma-cursor-theme-action@v0.6.0
|
||||
uses: phisch/figma-cursor-theme-action@v1.0
|
||||
with:
|
||||
figma_access_token: ${{ secrets.FIGMA_ACCESS_TOKEN }}
|
||||
figma_file_key: ${{ secrets.FIGMA_FILE_KEY }}
|
||||
alias_component_set_id: ${{ secrets.ALIAS_COMPONENT_SET_ID }}
|
||||
sprite_component_set_id: ${{ secrets.SPRITE_COMPONENT_SET_ID }}
|
||||
output_directory: 'build'
|
||||
theme_name: 'Phinger Cursors'
|
||||
theme_comment: 'The most over engineered cursor theme.'
|
||||
theme_directory: 'build/themes'
|
||||
export_directory: 'build/exports'
|
||||
svg_directory: 'build/exports/svg'
|
||||
|
||||
- name: Update assets
|
||||
run: |
|
||||
rm -rf assets
|
||||
[ ! -f ${{ steps.figma_cursor_theme.outputs.export_directory }} ] || mv ${{ steps.figma_cursor_theme.outputs.export_directory }} assets
|
||||
[ ! -f ${{ steps.figma_cursor_theme.outputs.svg_directory }} ] || mv ${{ steps.figma_cursor_theme.outputs.svg_directory }} assets/svg
|
||||
|
||||
mv build/exports assets
|
||||
|
||||
- name: Push updated assets
|
||||
uses: EndBug/add-and-commit@v7
|
||||
with:
|
||||
|
@ -34,7 +35,7 @@ jobs:
|
|||
message: 'updated assets from figma file version ${{ steps.figma_cursor_theme.outputs.version }}'
|
||||
|
||||
- name: Compress variants
|
||||
run: tar -cjf build/phinger-cursors-variants.tar.bz2 -C ${{ steps.figma_cursor_theme.outputs.theme_directory }} .
|
||||
run: tar -cjf build/phinger-cursors-variants.tar.bz2 -C build/themes .
|
||||
|
||||
- name: Upload cursor variants artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue