Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Build and Release

Build and Release #25

Workflow file for this run

# Copyright SduNetCheckTool
# Licensed under the GNU General Public License v3.0
name: Build and Release
on:
release:
types: [created]
# filter on draft releases only
jobs:
build:
uses: ./.github/workflows/build.yml
relase:
needs: build
runs-on: ubuntu-latest
env:
# app 命名 [名字]-[commit-tag]
artifact_name: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }}
steps:
#- name: Checkout
# uses: actions/checkout@v2
- name: Download Artifact
uses: actions/download-artifact@v4
- name: Display Artifact
run: |
ls -l
mv SduNetCheckTool.GUI.exe SduNetCheckTool-${{ github.ref_name }}.exe
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
SduNetCheckTool-${{ github.ref_name }}.exe
LICENSE.txt
tag_name: ${{ github.ref_name }}
draft: false
prerelease: false
token: ${{secrets.GITHUB_TOKEN}}