add scp upload step
@@ -46,10 +46,41 @@ jobs:
key: ${{ runner.os }}-platformio
- name: build ${{ matrix.target }}
- run: bash script/build-tester.sh ${{ matrix.target }}
+ run: bash script/build-tester.sh build ${{ matrix.target }}
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}
path: output/quicksilver*.hex
+
+ upload:
+ needs: build
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout
+ uses: actions/checkout@v3
+
+ - name: build html page
+ run: bash script/build-tester.sh html
+
+ - uses: actions/download-artifact@v3
+ with:
+ path: output
+
+ - name: upload hanfer
+ uses: appleboy/scp-action@master
+ with:
+ host: ${{ secrets.SSH_HOST }}
+ username: ${{ secrets.SSH_USERNAME }}
+ password: ${{ secrets.SSH_PASSWORD }}
+ strip_components: 1
+ overwrite: true
+ source: output/*/quicksilver*.hex,output/index.html
+ target: /mnt/hanfer/public/quicksilver/${{ github.ref_name }}
+
+ - name: release
+ uses: softprops/action-gh-release@v1
+ if: startsWith(github.ref, 'refs/tags/')
+ with:
+ files: output/*/quicksilver*.hex
