Files
n2-ir/.gitea/workflows/build.yaml
jiang 4f833f7555
All checks were successful
Build / Build (push) Successful in 6m42s
咕咕嘎嘎
2026-06-10 23:04:48 +08:00

41 lines
1.6 KiB
YAML

name: Build
run-name: Build bin
on: [ push ]
env:
name: ${{ github.ref_name }}@${{ GITHUB_RUN_NUMBER }}
jobs:
Build:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}"
- name: Get code
uses: actions/checkout@v4
# uses: http://server.jiang1446.i234.me:3000/jiang/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Build
run: |
cd ${{ gitea.workspace }} && make
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: export name=6666
- run: echo "🍏 ${{ github.ref_name }}@V${{ github.RUN_NUMBER }}."
- name: Use Go Action
id: use-go-action
uses: akkuman/gitea-release-action@v1
# uses: http://server.jiang1446.i234.me:3000/jiang/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
name: ${{ github.ref_name }}@V${{ github.RUN_NUMBER }}
tag_name: ${{ github.ref_name }}@V${{ github.RUN_NUMBER }}
# body: ${{ github.head_ref }}
# prerelease: true
md5sum: true
sha256sum: true
files: |-
.pio/build/esp32solo1/firmware.bin