Skip to content

Commit

Permalink
update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed Oct 18, 2024
1 parent 6cd1653 commit 3341d9c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 11 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release_assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Assets

permissions: write-all

on:
release:
types: [edited, prereleased, released]

jobs:
upload-gerber-assets:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up variables
run: |
REPO_NAME=$(basename -s .git `git config --get remote.origin.url`)
COMMIT_SHA=$(git rev-parse --short HEAD)
ZIP_NAME="${REPO_NAME}-${COMMIT_SHA}.gerber.zip"
echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_ENV
- name: Create ZIP archive of Gerber files
run: |
zip -j ${{ env.ZIP_NAME }} hw/cam_profi/gbr/*
- name: Upload ZIP as release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.ZIP_NAME }}
asset_name: ${{ env.ZIP_NAME }}
asset_content_type: application/zip
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

*~
_autosave-*
*auto_saved_files#
*backup*
*-backups
*-save.kicad_pcb
*-save.pro
*.000
*.bak
*.bck
*.dsn
*fp-info-cache
fp-info-cache
*.kicad_pcb-bak
*.kicad_prl
*.kicad_sch-bak
*.lck
*.orig
*.sch-bak
*-save.kicad_pcb
*-save.pro
*.ses
*.sch-bak
*.tmp
*auto_saved_files#
*backup*
*fp-info-cache
*~
_autosave-*
fp-info-cache
*.000
2 changes: 1 addition & 1 deletion doc/assets

0 comments on commit 3341d9c

Please sign in to comment.