Skip to content

updated files

updated files #1

Workflow file for this run

on: [push, pull_request, workflow_dispatch]
name: Build
jobs:
generate:
runs-on: ubuntu-latest
name: Generate
steps:
- name: Set Variables
run: |
echo "prefix=${GITHUB_REPOSITORY#*/}-${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Dump Variables
run: |
echo ${{ env.prefix }}
- name: Checkout
uses: actions/checkout@v2
- name: Export Gerbers
uses: ./.github/actions/export-gerbers
with:
pcb_file: hardware/nrfmicro.kicad_pcb
gerbers_dir: gerbers
- name: Gets latest created release info
id: latest_release_info
uses: jossef/action-latest-release-info@v1.1.0
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload front
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
overwrite: true
upload_url: ${{ steps.latest_release_info.outputs.upload_url }}
asset_path: ./gerbers/front.png
asset_name: ${{ env.prefix }}-front.png
- name: Upload back
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
overwrite: true
upload_url: ${{ steps.latest_release_info.outputs.upload_url }}
asset_path: ./gerbers/back.png
asset_name: ${{ env.prefix }}-back.png
- name: Upload gerbers
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
overwrite: true
upload_url: ${{ steps.latest_release_info.outputs.upload_url }}
asset_path: ./gerbers/gerbers.zip
asset_name: ${{ env.prefix }}-gerbers.zip