Skip to content

更新自动打包文件 #7

更新自动打包文件

更新自动打包文件 #7

Workflow file for this run

name: Build and Package for Tag
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get project name
id: vars
run: echo "::set-output name=project_name::$(basename $(git rev-parse --show-toplevel))"
- name: Package files as ZIP
run: |
mkdir -p package
cp -r * package/
zip -r "${{ steps.vars.outputs.project_name }}-${{ github.ref_name }}.zip" package/ -x ".github/*" -x ".gitignore" -x "pkgmeta.yaml"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: "${{ steps.vars.outputs.project_name }}-${{ github.ref_name }}.zip"