name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v2
    - name: Cache pip
      uses: actions/cache@v2
      with:
        path: ~/.cache/pip
        key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
        restore-keys: |
          ${{ runner.os }}-pip-
    - name: Cache PlatformIO
      uses: actions/cache@v2
      with:
        path: ~/.platformio
        key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

    - name: Set up Python
      uses: actions/setup-python@v2

    - name: Install PlatformIO
      run: |
        python -m pip install --upgrade pip
        pip install --upgrade platformio
    - name: Build
      env:
        PLATFORMIO_CI_SRC: RfidShelf
      run: platformio ci --board=nodemcuv2 --project-conf=RfidShelf/platformio.ini
    - name: Upload artifact
      uses: actions/upload-artifact@v2
      with:
        name: Firmware
        path: RfidShelf/build/latest.bin
        if-no-files-found: error
    - name: Release
      uses: softprops/action-gh-release@v1
      if: startsWith(github.ref, 'refs/tags/')
      with:
        files: RfidShelf/build/latest.bin
        fail_on_unmatched_files: true
        draft: true
      env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v2
    - name: Cache pip
      uses: actions/cache@v2
      with:
        path: ~/.cache/pip
        key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
        restore-keys: |
          ${{ runner.os }}-pip-
    - name: Cache PlatformIO
      uses: actions/cache@v2
      with:
        path: ~/.platformio
        key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
    - name: Set up Python
      uses: actions/setup-python@v2
    - name: Install PlatformIO
      run: |
        python -m pip install --upgrade pip
        pip install --upgrade platformio
    - name: Build
      env:
        PLATFORMIO_CI_SRC: RfidShelf
      run: platformio ci --board=nodemcuv2 --project-conf=RfidShelf/platformio.ini
    - name: Upload artifact
      uses: actions/upload-artifact@v2
      with:
        name: Firmware
        path: RfidShelf/build/latest.bin
        if-no-files-found: error
Remove release steps from github workflow
Remove release steps from github workflow
