Update docker-image.yml

This commit is contained in:
losehu 2023-12-08 22:43:24 +08:00 committed by GitHub
parent e097b3a575
commit a8effcf064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,13 @@
on: on: #指定触发 workflow 的事件
push: push: #当代码推送时触发
jobs: jobs: #定义工作流程
build: build: #工作流名称为 build
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04 #使用 Ubuntu 22.04 环境执行
container: container: #定义容器
image: archlinux:latest image: archlinux:latest #使用 Arch Linux 镜像
steps: steps: #定义工作流程中的步骤
- name: Install dependencies - name: Install dependencies
run: | run: |
pacman -Syyu --noconfirm \ pacman -Syyu --noconfirm \
@ -18,11 +18,11 @@ jobs:
python-pip \ python-pip \
python-crcmod python-crcmod
- name: Checkout - name: Checkout #拉取代码
uses: actions/checkout@v3 uses: actions/checkout@v3 #使用 GitHub Actions 提供的 checkout 动作
- name: safe.directory - name: safe.directory #设置 git 的 safe.directory 配置
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom run: git config --global --add safe.directory /__w/uv-k5-firmware-chinese/uv-k5-firmware-chinese
- name: Make - name: Make
run: make run: make
@ -42,7 +42,7 @@ jobs:
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: firmware.packed.bin file: firmware.packed.bin
asset_name: egzumer_$tag.packed.bin asset_name: LoseHu_$tag.bin
tag: ${{ github.ref }} tag: ${{ github.ref }}
overwrite: true overwrite: true
release_name: release ${{ github.ref_name }} release_name: release ${{ github.ref_name }}