更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 1m51s
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 16s
Details
自动流水线示例 / deploy (push) Successful in 20s
Details
自动流水线示例 / download (push) Successful in 43s
Details
自动流水线示例 / 检查 (push) Successful in 19s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
自动流水线示例 / build (push) Successful in 1m51s
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 16s
Details
自动流水线示例 / deploy (push) Successful in 20s
Details
自动流水线示例 / download (push) Successful in 43s
Details
自动流水线示例 / 检查 (push) Successful in 19s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
发布生产
This commit is contained in:
parent
a37ad395b1
commit
c68b7d7702
|
|
@ -149,21 +149,22 @@ jobs:
|
|||
steps:
|
||||
- run: echo "任务成功构建和部署完成"
|
||||
|
||||
upload:
|
||||
upload-test:
|
||||
name: 制品上传
|
||||
needs: check
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
#os: [ubuntu-latest, windows-latest]
|
||||
#os: [ubuntu-latest, windows-latest,macos-latest] https://github.com/actions/runner-images
|
||||
version: [a, b, c]
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: ${{ failure() }}
|
||||
steps:
|
||||
- name: 生成制品
|
||||
# run: ./some-script --version=${{ matrix.version }} > my-binary
|
||||
run: echo "系统=${{ matrix.os }},version=${{ matrix.version }}" > my-binary-${{ matrix.os }}-${{ matrix.version }}
|
||||
- name: 安装上传制品插件
|
||||
uses: actions/upload-artifact@v3 # download-artifact@v4 ,v4版本不支持github 企业服务(GitHub Enterprise Server (GHES)),v3支持
|
||||
uses: actions/upload-artifact@v3 # download-artifact@v4,v4版本不支持github 企业服务(GitHub Enterprise Server(GHES)v3支持
|
||||
id: artifact-upload-step-id
|
||||
with:
|
||||
name: binary-${{ matrix.os }}-${{ matrix.version }}
|
||||
|
|
@ -179,4 +180,32 @@ jobs:
|
|||
run: |
|
||||
echo 'Artifact ID is ${{ steps.artifact-upload-step-id.outputs.artifact-id }}'
|
||||
echo 'Artifact URL is ${{ steps.artifact-upload-step-id.artifact-url }}'
|
||||
echo 'Artifact SHA 256 is ${{ steps.artifact-upload-step-id.artifact-digest }}'
|
||||
echo 'Artifact SHA 256 is ${{ steps.artifact-upload-step-id.artifact-digest }}'
|
||||
upload:
|
||||
strategy:
|
||||
matrix:
|
||||
runs-on: [ubuntu-latest] # [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
steps:
|
||||
- name: Create a File
|
||||
run: echo "hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3 #github公开版可以用v4
|
||||
with:
|
||||
name: my-artifact-${{ matrix.runs-on }}
|
||||
path: file-${{ matrix.runs-on }}.txt
|
||||
download:
|
||||
needs: upload
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download All Artifacts
|
||||
uses: actions/download-artifact@v3 #github公开版可以用v4
|
||||
with:
|
||||
path: my-artifact
|
||||
pattern: my-artifact-*
|
||||
merge-multiple: true
|
||||
# 下载其他仓库的制品
|
||||
# github-token: ${{ secrets.GH_PAT }}
|
||||
# repository: actions/toolkit
|
||||
# run-id: 1234
|
||||
- run: ls -R my-artifact
|
||||
|
|
|
|||
Loading…
Reference in New Issue